954,600 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

detecting a key on pressing

hello all

i have a jsp page.there is a text box in jsp page.what i want is when i enter a key in text box it accepts it only if it is alphabet otherwise it would give an alert.I want to enable arrow and backspace and delete key.Currently i am using onkeypress event.it is working fine in Internet explore but not in Mozilla.I want to run in both browser.

Please help me out.it's critical

manish250
Junior Poster in Training
88 posts since Aug 2008
Reputation Points: 10
Solved Threads: 1
 

look on this example from jQuery, te email field does essentially what you looking for. You will just need to change events

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: