jQuery :image Selector Last Updated : 11 Jul, 2025 Comments Improve Suggest changes Like Article Like Report The jQuery :image selector is used to select the input elements with a type equal to the image. Syntax: $(":image")Parameter: :enabled selector: It is used for selecting HTML input elements for changing its properties, e.g. background-color, etc. Example 1: HTML <!DOCTYPE html> <html> <head> <title>:image Selector</title> <script src= "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"> </script> <script> $(document).ready(function () { $(":image").css("height", "50px"); }); </script> </head> <body> <center> <form action="#"> <h1>Welcome to GeeksforGeeks!</h1> Image <input type="image" src="logo.png" width="31" height="30"> </form> </center> </body> </html> Output: It changes the height of the image: Example 2: HTML <!DOCTYPE html> <html> <head> <title>:image Selector</title> <script src= "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"> </script> <script> $(document).ready(function () { $(":image").css("width", "150px"); }); </script> </head> <body> <center> <div style="background-color: #ffff94;"> <h1>Welcome to GeeksforGeeks!.</h1> Image <input type="image" src="logo.png" width="31" height="30"> </div> </center> </body> </html> Output: Create Quiz Comment A adeshsingh1 Follow 0 Improve A adeshsingh1 Follow 0 Improve 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 Like