jQuery :disabled Selector Last Updated : 11 Jul, 2025 Suggest changes Share Like Article Like Report The jQuery :disabled selector is used for selecting all disabled form elements. Syntax: $(":disabled")Parameter: :disabled selector: It is used for selecting HTML elements that support the disabled attribute. i.e. button tag, input tag, outgroup tag, option tag, select tag, and textarea tag.Example 1: HTML <!DOCTYPE html> <html> <head> <title>:disabled Selector</title> <script src= "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"> </script> <script> $(document).ready(function () { $(":disabled").css( "background-color", "green"); }); </script> </head> <body> <center> <form action="#"> <h1>Welcome to GeeksforGeeks!. </h1> <div> Text : <input type="text" name="text" disabled="disabled"> <br /> <br /> Select : <select> <option>1</option> <option>2</option> <option>3</option> <option>4</option> </select> </div> </form> </center> </body> </html> Output: Example 2: HTML <!DOCTYPE html> <html> <head> <title>:disabled Selector </title> <script src= "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"> </script> <script> $(document).ready(function () { $(":disabled").css( "background-color", "green"); }); </script> </head> <body> <center> <form action="#"> <h1>Welcome to GeeksforGeeks!. </h1> <div> Text : <input type="text" name="text" value="GeeksforGeeks"> <br /> <input type="submit" name="submit" value="submit" disabled="disabled"> </div> </form> </center> </body> </html> Output: A adeshsingh1 Follow Article Tags : Web Technologies JQuery jQuery-Selectors Explore jQuery Tutorial 7 min read Getting Started with jQuery 4 min read jQuery Introduction 7 min read jQuery Syntax 2 min read jQuery CDN 4 min read jQuery SelectorsJQuery Selectors 5 min read jQuery * Selector 1 min read jQuery #id Selector 1 min read jQuery .class Selector 1 min read jQuery EventsjQuery Events 4 min read jQuery bind() Method 2 min read jQuery blur() Method 1 min read jQuery change() Method 2 min read jQuery EffectsjQuery animate() Method 2 min read jQuery clearQueue() Method 2 min read jQuery delay() Method 2 min read jQuery HTML/CSSjQuery addClass() Method 2 min read jQuery after() Method 1 min read jQuery append() Method 2 min read jQuery TraversingjQuery | Traversing 4 min read jQuery add() method 1 min read jQuery addBack() Method 2 min read My Profile ${profileImgHtml} My Profile Edit Profile My Courses Join Community Transactions Logout Like