Closed NYPD closed 7 years ago
Would be much easier for someone to pass in a form object rather then select every single input in a form.
For example
var $form = $('form'); ritsu.validate($form );
vs
var $formInputs = $('form input, form textarea, form select'); ritsu.validate($formInputs);
Funny thing i noticed is the .validate() method already does this, just not the others.
.validate()
Would be much easier for someone to pass in a form object rather then select every single input in a form.
For example
vs