[jQuery] Validation plugin - Override submit action
Hi all,
I'm have a few problems with the validation plugin. I know there are
solutions, I just can't find the documentation or examples I need.
I am working with asp.net and the jQuery validatio plugin. Asp.net
means only one form per page. But I have two buttons that cause the
page to submit, for two totally unrelated reasons. One submits the
main form on the page, the other submits a mini-form that is on every
page. But since I cannot use 2 forms, the button for the mini-form
doesn't fire as long as the main form is not valid.
I want to use "onsubmit: false" and then write my own submit
behavior for the button for the main form. My problem is that I
cannot find a way to manually display the errors on the page from my
own js function.
E.g.,
($("#signupForm").validate());
return $("#signupForm").valid();
tells me whether the form is valid or not, but does not display error
messages.