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

:not() Selector

not selector

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

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

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月)
徐汇区| 铜陵市| 彰化市| 横峰县| 朝阳县| 库伦旗| 元谋县| 大宁县| 英德市| 稷山县| 梅州市| 河西区| 宁国市| 宝坻区| 分宜县| 叶城县| 赞皇县| 都昌县| 平度市| 郁南县| 韶山市| 大方县| 怀柔区| 白山市| 闵行区| 顺平县| 隆尧县| 甘德县| 武清区| 南涧| 安平县| 红安县| 高台县| 营口市| 娄烦县| 广平县| 靖远县| 武平县| 孙吴县| 湟源县| 东乡县|