KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need to capture a tab keypress event on some dynamic inputs, but the normal syntax using the keypress event doesn't seem to be catching the key code. $('input').live('keypress', function (e) { if ( e.which == 9 ) alert( 'Tab pressed' ); }); This seems to be catching 0 as the keypress when I go through the debugger in firebug no matter which key I press.
Tags (comma-separated)
Save Edits
Cancel