Skip to content

Commit 0f9c004

Browse files
committed
valid(): Fix demo, using the correct valid method
1 parent f42dd14 commit 0f9c004

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

entries/valid.xml

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
1414
]]></css>
1515
<code><![CDATA[
16-
var form = $( "#myform" ).validate();
16+
var form = $( "#myform" );
17+
form.validate();
1718
$( "button" ).click(function() {
1819
alert( "Valid: " + form.valid() );
1920
});
@@ -22,7 +23,7 @@ $( "button" ).click(function() {
2223
<form id="myform">
2324
<input type="text" name="name" required>
2425
<br>
25-
<button>Validate!</button>
26+
<button type="button">Validate!</button>
2627
</form>
2728
]]></html>
2829
</example>

0 commit comments

Comments
 (0)