Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (22 sloc) 0.99 kB
<?xml version="1.0"?>
<entry type="selector" name="enabled" return="">
<title>:enabled Selector</title>
<sample>:enabled</sample>
<signature>
<added>1.0</added>
</signature>
<desc>Selects all elements that are enabled.</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>$(':enabled')</code> is equivalent to <code>$('*:enabled')</code>, so <code>$('input:enabled')</code> should be used instead. </p>
</longdesc>
<example>
<desc>Finds all input elements that are enabled.</desc>
<code><![CDATA[$("input:enabled").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>
Jump to Line
Something went wrong with that request. Please try again.