jQuery keypress in element?
Posted: Tue Dec 18, 2007 10:19 pm
Is it possible to determine which element an keypress event fired in using jQuery?
I've trapped the keypress/keydown, etc...and it appears the only property exposed to clients is the
I was amazed to find that something like:
Wasn't provided...that I could tell anyways???
Anyone have any experience or insight as to how I could add this functionality to jQuery or determine the element which triggered the event?
I have hacked on a solution for IE only...but that kind of defeats the purpose of using jQuery
I've trapped the keypress/keydown, etc...and it appears the only property exposed to clients is the
Code: Select all
e.which == 32 // SPACE BAR PRESSSEDCode: Select all
e.elementAnyone have any experience or insight as to how I could add this functionality to jQuery or determine the element which triggered the event?
I have hacked on a solution for IE only...but that kind of defeats the purpose of using jQuery