jQuery Validation rule inner HTML
Posted
by Sam Zhou
on Stack Overflow
See other posts from Stack Overflow
or by Sam Zhou
Published on 2010-04-02T08:04:25Z
Indexed on
2010/04/02
8:13 UTC
Read the original article
Hit count: 533
jquery-validate
|metadata
As we know, jquery.validation.js is very powerful.
In common, we should define the rule in js first, and then apply to input element or form.
I'd like to declare the rule inner HTML code, then validator to find and apply the rule. just as below:
<input MaxLength="10" id="StrField" class="required" name="StrField" type="text" value="Test" />
I have used to rules: required MaxLength
My question is all the rules in jquery.validation could be wrote in HTML tag using attribute, and where I could get the document?
can the jquery.metadata help for this?
© Stack Overflow or respective owner