image selector in jQuery with example

Image selector returns all input elements with type image.

Example :

    <title>image Selector</title>
    <script type="text/javascript" src=""> </script>
    <script type="text/javascript">
    <input type="image" src="k.jpg" />
    <button type="button" id="myButton">Click Me</button>
    <button onclick="location.reload()">Reset</button>

Demo :

In the above example, we have used image selector. Image selector return all input elements with type image. In the above example the image selector selects the image and changes size of it.


Post a Comment