I’m using the jQuery validate plugin for my form validation. I’ve got it working fine when setting mandatory fields (using rules and messages), and they get highlighted if they’re not completed when the user tries to submit the form.
I have another requirement though, and I wonder if this can be done with the jQuery validate plugin or not?
I have a dropdown field with three values – Draft, For Review, and Published. The default value is Draft. I want a popup alert box to instantly appear when the user changes the dropdown value to Published which says, “Are you sure you want to this to be published?” With options of Okay or Cancel.
Is this possible with the jQuery validate plugin? If so, how?
Thanks for any help,
Ste
I wouldn’t do an interactive cofirmation in a jquery validate rule, although if you really want to it is possible. One reason why not is that the rule will run when you submit the form, as part of the form validation, giving you a second confirmation popup.
try it and see if it works for you