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
Post a Comment