欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

jQuery中:password選擇器用法實例

 更新時間:2015年01月03日 11:30:16   投稿:shichen2014  
這篇文章主要介紹了jQuery中:password選擇器用法,實例分析了:password選擇器的功能、定義與匹配密碼框的使用技巧,具有一定參考借鑒價值,需要的朋友可以參考下

本文實例講述了jQuery中:password選擇器用法,分享給大家供大家參考。具體分析如下:

此選擇器能夠選取所有密碼框。

語法結(jié)構(gòu):

復(fù)制代碼 代碼如下:
$(":password")

實例代碼:

復(fù)制代碼 代碼如下:

<!DOCTYPE html>
<html>
<head>
<meta charset=" utf-8">
<meta name="author" content="http://www.dbjr.com.cn/" />
<title>腳本之家</title>
<script type="text/javascript" src="mytest/jQuery/jquery-1.8.3.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $("#btn").click(function(){
    $(":password").css("background-color","red");
  })
})
</script>
</head>
<body>
<ul>
  <li>密碼框:<input type="password" name="mima" /></li>
</ul>
<button id="btn">點擊查看效果</button>
</body>
</html>

希望本文所述對大家的jQuery程序設(shè)計有所幫助。

相關(guān)文章

最新評論