jQuery(':enabled')

Description:Selectsallelementsthatareenabled.

Aswithotherpseudo-classselectors(thosethatbeginwitha":")itisrecommendedtoprecedeitwithatagnameorsomeotherselector;otherwise,theuniversalselector("*")isimplied.Inotherwords,thebare$(':enabled')isequivalentto$('*:enabled'),so$('input:enabled')shouldbeusedinstead.

Example:

Findsallinputelementsthatareenabled.

<!DOCTYPEhtml>

<html>

<head>

<scriptsrc="http://code.jquery.com/jquery-latest.js"></script>

</head>

<body>

<form>

<inputname="email"disabled="disabled"/>

<inputname="id"/>

</form>

<script>$("input:enabled").val("thisisit");</script>

</body>

</html>