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

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -