How to find all input elements that are enabled using jQuery? Last Updated : 13 Apr, 2021 Comments Improve Suggest changes Like Article Like Report The jQuery " :enabled" pseudo-class selector helps to find all the input element that are enabled. This pseudo-class selector should only be used for selecting HTML elements that support the disabled attribute i.e (<button>, <input>, <textarea>, <select>, <option>, <optgroup>) As with other pseudo-class selector like (a:hover) is also recommended preceding it with a tag name or with some other selector, otherwise the universal selector ("*") is implied like $( "*:enabled" ) or $( "input:enabled"). Syntax: $( "input:enabled" ).val( "This box is enabled" ); Note: (:enabled) select elements that have their boolean disabled property strictly to false. HTML code: The following code demonstrates the :enabled pseudo-class selector to find all the input elements that are enabled using jQuery. HTML <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Elements that are enabled</title> <script src="https://code.jquery.com/jquery-3.5.0.js"></script> </head> <body> <h1 style="color: green; margin-left: 120px;">GeeksforGeeks</h1> <!-- The form contains three boxes out of which two boxes are disabled --> <form> <!-- Set input disabled --> <input style="border: 0.8px solid green;" name="email" disabled> <input style="border: 0.8px solid green;" name="id"> <input style="border: 0.8px solid green;" name="email" disabled> </form> <!-- The val is displayed in the box in which the input element is enabled --> <script> $( "input:enabled" ).val( "This box is enabled" ); </script> </body> </html> Output: Enabled Comment More infoAdvertise with us Next Article How to find all input elements that are enabled using jQuery? S sayantanbose2001 Follow Improve Article Tags : Web Technologies JQuery jQuery-HTML/CSS jQuery-Selectors Similar Reads How to finds all elements that are empty in jQuery ? In this article, we will see how to find all elements on the page that are empty using jQuery. Approach 1: The :empty selector can be used to get all elements in the page that are currently empty. These elements are iterated over using the each() method and can be accessed using the this reference i 3 min read How to find all elements that are disabled in jQuery ? In this article, we will learn how to find all elements on the page that are disabled using jQuery. Approach: The :disabled selector can be used to get all elements on the page that are currently disabled. These elements are iterated over using the each() method. The elements can then be individuall 2 min read How to enable/disable all input controls inside a form element using jQuery ? Give an HTML document containing a form element. The form element contains input elements, option elements, and button elements. The task is to enable or disable all input controls inside a form using jQuery. It can be done by using prop() method. Using prop() Method: It is used to set or return the 3 min read How to find all button inputs and mark them using jQuery ? jQuery is a small and fast JavaScript library with a motto: "Write Less And Do More". To use JQuery you can either download the jquery library on your local machine or include the jquery library in your HTML code. Keep in mind that before learning JavaScript you have a basic knowledge of HTML, CSS, 2 min read How to find all checkbox inputs using jQuery ? The task is to find all the checkbox input using jQuery. Checkboxes are the square boxes that are ticked when activated, and it is used to select one or more number of choices. Method and Selectors used: :checkbox: This selector is used to select the input element with type = checkbox. .wrap(): This 2 min read Like