jQuery参考手册
jQuery [attribute!=value] 选择器
jQuery [attribute!=value] 选择器
jQuery [attribute!=value] 选择器
![jQuery [attribute!=value] 选择器 jQuery [attribute!=value] 选择器](http://static.verydoc.net/img1/up.gif)
实例
选取所有 class 属性值不为 "intro" 的 <p> 元素:
$("p[class!='intro']")
尝试一下 »
定义和用法
[attribute!=value] 选择器选取每个不带有指定属性和值的元素。
带有指定的属性,但不带有指定的值的元素,也会被选择。
语法
$("[attribute!='value']")
| 参数 | 描述 |
|---|---|
| attribute | 必需。规定要查找的属性。 |
| value | 必需。规定要查找的值。 |
![jQuery [attribute!=value] 选择器 jQuery [attribute!=value] 选择器](http://static.verydoc.net/img1/up.gif)
| jQuery [attribute!=value] 选择器 |
|---|
加载中,请稍侯......