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
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902