Search code examples
jquerystoppropagation

Jquery - Want to prevent invoking popup window which is already defined


I am invoking one popup window on clicking of table row.

So my code is like this...

$('.assignPanel tbody tr').on('click', function() {  // code for invoking the popup window });

The problem is here. I dont want to invoke the same popup window while clicking on other set of 'tbody tr' where I am having class name called 'noRequiredPopup'. How can i handle this situation? Help please.


Solution

  • Try this : use .not() to filter out the trwith class="noRequiredPopup"

    $('.assignPanel tbody tr').not('.noRequiredPopup').on('click', function() {  // code for invoking the popup window });