Jeffrey Dake
asked on
Detecting tab press in javascript
I would like to have a text-area or a text input, that when the user presses tab (ie. Trys to go to the next form field), I can fire some JavaScript that opens up a hidden element. Does anyone know a good way to do this? Do I need to listening for any key-press on the page, or is there a way to do it specifically when they are only within the text-area.
Thanks in advance for the help.
Thanks in advance for the help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks guys.
please note : https://api.jquery.com/event.which/
The event.which property normalizes event.keyCode and event.charCode. It is recommended to watch event.which for keyboard key input.
ASKER
Thanks leakim971
Open in new window