javascript - How to attach an event at runtime to all html elements of a certain type using css? -


is possible attach event html tag css:

input [type="text"] { onkeypress (dojob(this));  }  

with jquery may write this

$('input[type=text]').keypress(function() {...}) 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -