javascript - Exclude a class from fired event jquery -


i have table has on keyup events being fired if dynamically generated inputs modified exclude classes of input in table row events, have tried 2 options , both have failed

$(document).on('keyup', '.tg > tbody > tr:not(.pd1)', function() {}); $(document).on('keyup', '.tg > tbody > tr:not(".pd1")', function() {}); //added quotes pd1 class 

sugestions!

instead of registering event tr, use input

$(document).on('keyup', '.tg > tbody  input:not(.pd1)', function() {}); 

Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -