browsing some html code I find a text input coded as:
<input type="text" name="Email<%=orderRow.ID %>_<%=i %>" class="{email: true}" />
but need help understanding what's happening with the class declaration. It's not part of hte .net-ness of the page, right - lack of '<%'开发者_运维问答 and '%>' is telling me that. But I haven't seen an object used in a class name before.
thx
This is from jQuery Validation. It is a method used to set the required fields and properly formatted fields.
http://bassistance.de/jquery-plugins/jquery-plugin-validation/
To be more specific it is part of the metadata plugin for jQuery Validation.
The object for the class name is using a jQuery validate plugin. Basically it tells the validate class to validate that input as an email address.
At least, that's what I've used it for. Hope that helps.
Look for some Javascript code verifying the form when it's posted. It looks like data that such a script could use.
精彩评论