Remove JQuery validationEngine from form

Posted by psynnott on Stack Overflow See other posts from Stack Overflow or by psynnott
Published on 2010-02-17T22:41:10Z Indexed on 2010/04/19 22:03 UTC
Read the original article Hit count: 535

Filed under:
|

I am using Position Absolute's jQuery validationEngine but I need to remove it after attaching it to a form.

I have 2 submit buttons on my form - one for save and one for save as draft.

I attach the validationEngine to the form when Save is clicked. If the validation fails, and the user clicks Save as Draft (by passing the validation), the validation engine is still attached to the form from when they clicked "save".

What I want to do is: - allow the user to attempt to save - validation fails and error is displayed - and allow them to click save as draft without any validation being performed

I tried the unbind function and it appears to work, but it breaks the submit on the button completely. I just want to remove the validationEngine and allow everything else to work as it was.

Thanks

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about validation