$(document). Not('input') does not find all elements that are not input tags. It finds all the document nodes (of which there is one) that are not input elements (which is all one of them).
All you've done is attached the handler to the document Because parent elements are notified of events triggered on their descendants, all keydown events are handled by this function You should make use of event. Target instead: $(document). Keydown( function (event) { if (event.target.nodeName.toLowerCase()!
== 'input') { var hkey = event. KeyCode; if (hkey == $('span#hk').text()){ $("span#hk:contains("+hkey+")").parent().click(); } } }) The if statement means the handler does not do anything if the event originated on an input element.
$(document). Not('input') does not find all elements that are not input tags. It finds all the document nodes (of which there is one) that are not input elements (which is all one of them).
All you've done is attached the handler to the document. Because parent elements are notified of events triggered on their descendants, all keydown events are handled by this function. You should make use of event.
Target instead: $(document). Keydown( function (event) { if (event.target.nodeName.toLowerCase()! == 'input') { var hkey = event.
KeyCode; if (hkey == $('span#hk').text()){ $("span#hk:contains("+hkey+")").parent().click(); } } }); The if statement means the handler does not do anything if the event originated on an input element.
Thanks so much! That worked brilliantly in targeting the input/document event! – Josiah May 14 at 19:50.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.