Execute JQuery Validate on Given Condition -


If it meets certain criteria, is it possible to call the JQuery validate function? Like I have some radio buttons

If yes, then I want to validate.

If someone can tell me how anyone can get will be greatly appreciated.

There are jQuery form validation plugins, but if you need something simple, this is all form input Validate:

  $ ('# myForm'). Submit (function () {if ($ ('$ btn yes', this) .is (': checked')) return true; else {displayError (); return back; // stop form from submitting}} );    

Comments