Can someone help me understand this jquery line of code ?:
$(this).find('input[type="submit"]:not(.cancel), button').click(function ()
I'm particularly interested in .cancel
, since the entire jquery code snippet (not included here) is used to validate the page, and I'm trying to prevent validation if the user clicks the cancel button. I assume that the above line of code says that the submit button pressed is NOT a cancel button, and then continues.
But I do not know how to assign a button as a cancel.
source share