Home > Article > Web Front-end > jquery: what is the selector of disabled
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 d5fd7aea971a85678ba271703566ebfd and bb9345e55eb71822850ff156dfde57c8 elements:
<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!