You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: entries/val.xml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@
13
13
<longdesc>
14
14
<p>The <code>.val()</code> method is primarily used to get the values of form elements such as <code>input</code>, <code>select</code> and <code>textarea</code>. When called on an empty collection, it returns <code>undefined</code>.</p>
15
15
<p>When the first element in the collection is a <code>select-multiple</code> (i.e., a <code>select</code> element with the <code>multiple</code> attribute set), <code>.val()</code> returns an array containing the value of each selected option. <strong>As of jQuery 3.0</strong>, if no options are selected, it returns an empty array; <strong>prior to jQuery 3.0</strong>, it returns <code>null</code>.</p>
16
-
<p>For selectsand checkboxes, you can also use the <ahref="/selected-selector/">:selected</a> and <ahref="/checked-selector/">:checked</a> selectors to get at values. For example:</p>
16
+
<p>For selects, checkboxes and radio buttons, you can also use the <ahref="/selected-selector/">:selected</a> and <ahref="/checked-selector/">:checked</a> selectors to get at values. For example:</p>
0 commit comments