This example describes the jquery: Password selector usage, shared for everyone to reference. The specific analysis is as follows:
This selector is able to select all password boxes.
Syntax structure:
Copy Code code as follows:
Instance code:
Copy Code code as follows:
<! DOCTYPE html>
<meta charset= "Utf-8" >
<meta name= "Author" content= "http://www.jb51.net/"/>
<title> Cloud-dwelling community </title>
<script type= "Text/javascript" src= "Mytest/jquery/jquery-1.8.3.js" ></script>
<script type= "Text/javascript" >
$ (document). Ready (function () {
$ ("#btn"). Click (function () {
$ (":p assword"). CSS ("Background-color", "Red");
})
})
</script>
<body>
<ul>
<li> Password box: <input type= "password" name= "Mima"/></li>
</ul>
<button id= "BTN" > Click to view Effect </button>
</body>
I hope this article will help you with your jquery programming.