what I want to do is to use something like
name="validate[required]"
basically use it other than on class property
thank you.
EDIT: http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/
what I want to do is to use something like
name="validate[required]"
basically use it other than on class property
thank you.
EDIT: http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/
$('input[name="validate[required]"]');
In above I used jQuery equal selector. Where I target all inputs with name attribute equal to validate[required].
For more about different jQuery selectors see here