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

:input Selector

input selector

version added: 1.0jQuery(':input')

描述: 選擇所有 input, textarea, select 和 button 元素.

:input選擇器基本上選擇所有表單控件。

Example:

Finds all input elements.

<!DOCTYPE html>
<html>
<head>
  <style>
  textarea { height:25px; }
  </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 id="messages">
  </div>
<script>

    var allInputs = $(":input");
    var formChildren = $("form > *");
    $("#messages").text("Found " + allInputs.length + " inputs and the form has " +
                             formChildren.length + " children.");
            
    // so it won't submit
    $("form").submit(function () { return false; }); 

</script>

</body>
</html>

Demo:

jQuery 1.6 API 中文版腳本之家整理、修訂 (2011年6月)
芷江| 侯马市| 威宁| 东平县| 海盐县| 大渡口区| 福建省| 库车县| 凯里市| 招远市| 镇沅| 东乌| 兰坪| 江口县| 鹿邑县| 开封县| 高平市| 南澳县| 绩溪县| 碌曲县| 额济纳旗| 兴化市| 台南市| 灵丘县| 哈尔滨市| 奉贤区| 绍兴市| 海安县| 龙里县| 翁源县| 专栏| 普洱| 宜川县| 江山市| 惠州市| 景德镇市| 商南县| 遂平县| 开远市| 汝阳县| 荆门市|