disabled

英[dɪsˈeɪbld] 美[dɪsˈebəld]

adj. Disabled, defective

v. To make incapable ( past tense and past participle of disable); to make disabled; to make disabled; to make invalid

jquery disabled selector syntax

Function: disabled selector selects all disabled form elements.

Syntax: $(":disabled")

jquery disabled selector example

<html>
<head>
<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript"> 
 
$(document).ready(function(){
    $(":disabled").css("background-color","#B2E0FF");
});
 
</script>	
</head>
<body>
<html>
<body>
<form action="">
Name: <input type="text" name="user" />
<br />
Password: <input type="password" name="password" disabled="disabled" />
<br />
<button type="button">Useless Button</button>
<input type="button" value="Another useless button" disabled="disabled" />
<br />
<input type="reset" value="Reset" />
<input type="submit" value="Submit" disabled="disabled" />
<br />
</form>
</body>
</html>
</body>
</html>
Run instance »

Click the "Run instance" button to view the online instance