PDA

View Full Version : jQuery validate form - submit prematurely



snooper
09-27-2011, 02:42 PM
hi all,

i have a jquery validate setup on the form. while the form is being filled out, i ajax 2 of the field values to see if the form is acceptable or not, and as a result disable/enable the submit button of the form.

it seems like as a result - the form is prematurely validated - which should only happen when the submit button is hit.

can anyone suggest a fix?

thanks!
Here is my jsfiddle: http://jsfiddle.net/7S9W3/

PS - my form is actually much longer than in the sample i setup - that's why i check the 2 values while the form is still being filled out.