Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2 textfield onChange not working properly

 
Pooja Shah
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a textfield on whose onChange event i display an alert.
The alert does get displayed but not immediately after the edit in the textfield.
After editing, if i click on the page, or tab to the next field, it gets displayed.
Is this how it is supposed to be? More like onBlur...
 
Ankit Garg
Sheriff
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to call a javascript method after any key press, then use onkeypress event...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic