Im using the jQuery validate plugin to validate a form, im wanting to add a class “next” to the submit button if the form is valid only
Send
This is the code i have at the moment all working and validating, just need a function to add the class if valid:
http://jsfiddle.net/kKSjL/
Link to jQuery validation page:
http://docs.jquery.com/Plugins/Validation/
Archer has it generally, you just need to specify that as a
submitHandlerwithin the validate call:Here it is in action: http://jsfiddle.net/ryleyb/kKSjL/1/