victorjonsson / jQuery-Form-Validator

[DISCONTINUED] jQuery plugin that makes it easy to validate user input while keeping your HTML markup clean from javascript code.
972 stars 476 forks source link

Validate Custom Form by ID #745

Closed btr-simbu closed 5 years ago

btr-simbu commented 5 years ago

I've two forms in a single page and I want only validate one form not the another one. So how to select form by ID.

$.validate(); //It applies to all of the available forms

Ex: $.validate({ id: '#registration-form' });

Any Possible solutions?

Edit:

Solution:

$.validate({ form: '#registration-form' });