-
Notifications
You must be signed in to change notification settings - Fork 260
Expand file tree
/
Copy pathdisabled-selector.xml
More file actions
17 lines (16 loc) · 927 Bytes
/
disabled-selector.xml
File metadata and controls
17 lines (16 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<entry type='selector' name="disabled" return="">
<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 name="Form" slug="form-selectors"/>
<category name="Version 1.0" slug="1.0"/>
</entry>