I have a number of conditions that I would like to check before submitting the form, so that I create:
$("Step2_UpdateCartForm").submit(function () { if (!procssingEmails) { return true; } else { return false; }
And I have a number of events that can lead to the submission of the form, so I have something like:
function fireUpdateCart() { if (isUpdateCartPending) { clearCartOptionDefaultValues(); $("#Step2_UpdateCartForm").submit(); } }
in several different places. I expect the above statement to send processing to this first block of code, but a form is submitted instead.
I am mistaken in expecting my validation block to be processed
jquery forms
justSteve
source share