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