最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

:password Selector

password selector

version added: 1.0jQuery(':password')

描述: 選擇所有類型為密碼的元素。

$(':password')等價(jià)于$('[type=password]')。如同其他偽類選擇器(那些以“:”開始)建議前面加上一個(gè)標(biāo)記名稱或其他選擇器;否則,通用選擇("*")被默認(rèn)使用。換句話說$(':password') 等同于 $('*:password'),所以應(yīng)該使用$('input:password')

Example:

Finds all password inputs.

<!DOCTYPE html>
<html>
<head>
  <style>
  textarea { height:45px; }
  </style>
  <script src="http://code.jquery.com/jquery-latest.min.js"></script>
</head>
<body>
  <form>
    <input type="button" value="Input Button"/>
    <input type="checkbox" />

    <input type="file" />
    <input type="hidden" />
    <input type="image" />

    <input type="password" />
    <input type="radio" />
    <input type="reset" />

    <input type="submit" />
    <input type="text" />
    <select><option>Option<option/></select>

    <textarea></textarea>
    <button>Button</button>
  </form>
  <div>
  </div>
<script>

    var input = $("input:password").css({background:"yellow", border:"3px red solid"});
    $("div").text("For this type jQuery found " + input.length + ".")
            .css("color", "red");
    $("form").submit(function () { return false; }); // so it won't submit

</script>

</body>
</html>

Demo:

jQuery 1.6 API 中文版腳本之家整理、修訂 (2011年6月)
玉田县| 泗阳县| 靖边县| 三明市| 福建省| 河间市| 朝阳县| 博客| 正蓝旗| 凭祥市| 永春县| 山东| 洛隆县| 泰宁县| 德庆县| 太和县| 惠水县| 游戏| 新巴尔虎右旗| 万全县| 福海县| 同江市| 寻乌县| 贺州市| 香格里拉县| 忻城县| 浦江县| 大丰市| 柘城县| 民权县| 营口市| 纳雍县| 衡阳县| 崇仁县| 法库县| 龙州县| 新昌县| 陵川县| 米林县| 广东省| 饶河县|