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

matlab - How to equate a structure array to structure array -

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -