We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5470f7a commit 0024de1Copy full SHA for 0024de1
entries/jQuery.validator.addMethod.xml
@@ -35,7 +35,7 @@ See also a <a href="http://regexlib.com/DisplayPatterns.aspx">library of regular
35
<example>
36
<desc>Add a validation method that checks if a value starts with a certain domain.</desc>
37
<code><![CDATA[
38
-jQuery.validator.addMethod("domain";, function(value, element) {
+jQuery.validator.addMethod("domain", function(value, element) {
39
return this.optional(element) || /^http:\/\/mycorporatedomain.com/.test(value);
40
}, "Please specify the correct domain for your documents");
41
]]></code>
0 commit comments