Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Use a Trigger to Sent an Enter Key Stroke  RSS feed

 
Ranch Hand
Posts: 1893
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an input element in one container that has a keyup event bound to it.

In the process another container displays a list. When a user selects a list element the input in the first container is populated.

I would like to do a trigger that would programmatically press the enter key.

Every thing works fine except the trigger.

Here is the function that starts the request:



Here is the first container:



Here is the trigger code:

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!