-
Notifications
You must be signed in to change notification settings - Fork 260
Expand file tree
/
Copy pathdisabled-selector.xml
More file actions
23 lines (22 loc) · 993 Bytes
/
disabled-selector.xml
File metadata and controls
23 lines (22 loc) · 993 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0"?>
<entry type="selector" name="disabled" return="">
<title>:disabled Selector</title>
<sample>:disabled</sample>
<signature>
<added>1.0</added>
</signature>
<desc>Selects all elements that are disabled.</desc>
<longdesc>
<p>As with other pseudo-class selectors (those that begin with a ":") it is recommended to precede it with a tag name or some other selector; otherwise, the universal selector ("*") is implied. In other words, the bare <code>$(':disabled')</code> is equivalent to <code>$('*:disabled')</code>, so <code>$('input:disabled')</code> should be used instead. </p>
</longdesc>
<example>
<desc>Finds all input elements that are disabled.</desc>
<code><![CDATA[$("input:disabled").val("this is it");]]></code>
<html><![CDATA[<form>
<input name="email" disabled="disabled" />
<input name="id" />
</form>]]></html>
</example>
<category slug="selectors/form-selectors"/>
<category slug="version/1.0"/>
</entry>