password selector in jQuery with example

Password selector returns all input elements with type password.

Example :

    <title>password Selector</title>
    <script type="text/javascript" src=""> </script>
    <script type="text/javascript">
    <input type="password" id="text1" Value="This is textbox">
    <button id="myButton">Click Me</button>
    <button onclick="location.reload()">Reset</button>

Demo :

In the above example, we have used password selector. Password selector return all input elements with type password. In the above example the password selector selects the textbox of type password and changes the background color of the textbox.


Post a Comment