In jquery, ":disabled" is a form filter selector, used to select all disabled form elements (such as input or button), the syntax format is "$(":disabled")".
The operating environment of this tutorial: Windows 7 system, jquery version 1.10.2. This method is suitable for all brands of computers.
jquery :disabled selector
Definition and usage
:disabled
The selector selects all disabled form elements.
Syntax
$(":disabled")
Example
Select all disabled and
<script> $(document).ready(function(){ $(":disabled").css("background-color","red"); }); </script>
Related free learning recommendations: JavaScript (video)
The above is the detailed content of jquery: what is the selector of disabled. For more information, please follow other related articles on the PHP Chinese website!