Skip to content

Commit 0024de1

Browse files
committed
Fix typo in jQuery.validator.addMethod() example
1 parent 5470f7a commit 0024de1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entries/jQuery.validator.addMethod.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ See also a <a href="http://regexlib.com/DisplayPatterns.aspx">library of regular
3535
<example>
3636
<desc>Add a validation method that checks if a value starts with a certain domain.</desc>
3737
<code><![CDATA[
38-
jQuery.validator.addMethod("domain";, function(value, element) {
38+
jQuery.validator.addMethod("domain", function(value, element) {
3939
return this.optional(element) || /^http:\/\/mycorporatedomain.com/.test(value);
4040
}, "Please specify the correct domain for your documents");
4141
]]></code>

0 commit comments

Comments
 (0)