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

:file Selector

file selector

version added: 1.0jQuery(':file')

描述: 選擇所有類型為文件的元素。

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

Example:

Finds all file 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:file").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月)
石河子市| 贵州省| 农安县| 嘉兴市| 阳城县| 高台县| 大足县| 临安市| 河东区| 桂东县| 堆龙德庆县| 故城县| 揭东县| 砚山县| 赣榆县| 茌平县| 赞皇县| 九寨沟县| 八宿县| 大邑县| 湾仔区| 天气| 古浪县| 盐池县| 镇坪县| 白玉县| 闸北区| 武穴市| 大关县| 启东市| 灵台县| 东乌珠穆沁旗| 阿克苏市| 井冈山市| 清水河县| 金溪县| 若尔盖县| 韩城市| 阿拉善盟| 韶山市| 梁河县|