Rick, If the button is disabled, how are they going to resubmit the form after they enter the correct information? You would need to disable the button, then re-enable it on keyup so they can re-submit once they've filled the info in correctly.
To disable, somewhere in your error placement function, do something like: $("#buttonID").css({disabled:true}); Where "buttonID" is your Calculate button id. Then you'll want to bind a keyup event in your fields: $("#buttonID").css({disabled:false}); So the button will be re-enabled when they enter more info. Now I didn't test any of that, nor have I used the validation script, but it should get you going in the right direction. -- Josh ----- Original Message ----- From: "Rick Faircloth" <[EMAIL PROTECTED]> To: "'jQuery Discussion.'" <discuss@jquery.com> Sent: Friday, March 09, 2007 4:41 PM Subject: [jQuery] How can I disable a form submit button if there are entryerrors? > Hi, all. > > I'm using Jorn's validation plug-in to validate form entry > and everything is working perfectly, except for the fact > that even after an entry error is made the message shown, > a user can still click the "Calculate" button and submit the > form. > > I need to disable the "Calculate" button somehow if an > entry error is made. > > Can someone give me some clues how this can be done? > > Plug-ins involved in the form are Jorn's Validation > and there is an Ajax(?) functions for submitting the form > and returning the result. > > Jorn's validation plug-in has debug set to true and that's > supposed to stop *all* form submissions, even the correct ones, > but so far everything's going through. > > Clues anyone? > > Thanks, > > Rick > > > > > _______________________________________________ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/