Skip to content

Commit 5470f7a

Browse files
committed
Fix missing call to .validate() in Validator docs. Fixes jzaefferer/jquery-validation##776
1 parent 0f9c004 commit 5470f7a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

entries/Validator.element.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<example>
1313
<desc>Triggers element validation programmatically.</desc>
1414
<code><![CDATA[
15-
var validator = $( "#myform" );
15+
var validator = $( "#myform" ).validate();
1616
validator.element( "#myselect" );
1717
]]></code>
1818
</example>

entries/Validator.form.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<example>
1010
<desc>Triggers form validation programmatically.</desc>
1111
<code><![CDATA[
12-
var validator = $( "#myform" );
12+
var validator = $( "#myform" ).validate();
1313
validator.form();
1414
]]></code>
1515
</example>

entries/Validator.resetForm.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<example>
1010
<desc>Reset the form controlled by this validator.</desc>
1111
<code><![CDATA[
12-
var validator = $( "#myform" );
12+
var validator = $( "#myform" ).validate();
1313
validator.resetForm();
1414
]]></code>
1515
</example>

entries/Validator.showErrors.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<example>
1313
<desc>Adds and shows error message programmatically.</desc>
1414
<code><![CDATA[
15-
var validator = $( "#myshowErrors" );
15+
var validator = $( "#myshowErrors" ).validate();
1616
validator.showErrors({
1717
"firstname": "I know that your firstname is Pete, Pete!"
1818
});

0 commit comments

Comments
 (0)