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

Java sticky instances of class com.mysql.jdbc.Field aggregating -