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

:not() Selector

not selector

version added: 1.0jQuery(':not(selector)')

  • selector
    一個(gè)用來過濾的選擇器。

Description: 選擇所有去除不匹配給定的選擇器的元素。

所有的選擇器可以放置在 :not()中,例如 :not(div a):not(div,a)

Additional Notes

.not()方法通常更快,最終可能會(huì)提供一個(gè)更可讀的選擇,你選擇或較復(fù)雜的變量在:not()選擇濾波器中。

Example:

Finds all inputs that are not checked and highlights the next sibling span. Notice there is no change when clicking the checkboxes since no click events have been linked.

<!DOCTYPE html>
<html>
<head>
  <script src="http://code.jquery.com/jquery-latest.min.js"></script>
</head>
<body>
  <div>
  <input type="checkbox" name="a" />
  <span>Mary</span>
</div>

<div>
  <input type="checkbox" name="b" />
  <span>lcm</span>

</div>
<div>
  <input type="checkbox" name="c" checked="checked" />

  <span>Peter</span>
</div>
<script>
  $("input:not(:checked) + span").css("background-color", "yellow");
  $("input").attr("disabled", "disabled");

</script>

</body>
</html>

Demo:

jQuery 1.6 API 中文版腳本之家整理、修訂 (2011年6月)
大同市| 天镇县| 乡宁县| 威海市| 鸡泽县| 黄陵县| 正蓝旗| 永州市| 汾阳市| 界首市| 读书| 蒙阴县| 五指山市| 榕江县| 桐庐县| 定日县| 思茅市| 宜阳县| 当阳市| 九江市| 米林县| 伊宁县| 景洪市| 镇平县| 古交市| 寻乌县| 海盐县| 太和县| 名山县| 秦皇岛市| 五常市| 许昌县| 广西| 涟水县| 莎车县| 兰溪市| 天镇县| 茂名市| 新竹市| 通化市| 鹤庆县|