Skip to content

Commit f1001e9

Browse files
Arknistaabm
authored andcommitted
Entries: Update required method docs to note that whitespaces are valid (#38)
Fixes jquery-validation/jquery-validation#1794
1 parent c550458 commit f1001e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

entries/required-method.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
Return false, if the element is empty (text input) or unchecked (radio/checkbox) or if nothing is selected (select).
77
<p>Works with text inputs, selects, checkboxes and radio buttons.</p>
88
<p>To force a user to select an option from a select box, provide an empty option element like &lt;option value=""&gt;Choose...&lt;/option&gt;</p>
9+
<p>Note that white spaces are considered valid.</p>
910
</longdesc>
1011
<signature>
1112
<desc>The element is always required.</desc>
@@ -28,7 +29,7 @@
2829
</argument>
2930
</signature>
3031
<example>
31-
<desc>Makes "field" always required. Nothing and blanks are invalid.</desc>
32+
<desc>Makes "field" always required.</desc>
3233
<code><![CDATA[
3334
$( "#myform" ).validate({
3435
rules: {

0 commit comments

Comments
 (0)