jQuery [attribute!=value] 选择器
jQuery 教程
· 2019-03-10 15:27:41
实例
选取所有 class 属性值不为 "intro" 的 <p> 元素:
$("p[class!='intro']")
定义和用法
[attribute!=value] 选择器选取每个不带有指定属性和值的元素。
带有指定的属性,但不带有指定的值的元素,也会被选择。
语法
$("[attribute!='value']")
| 参数 | 描述 |
|---|---|
| attribute | 必需。规定要查找的属性。 |
| value | 必需。规定要查找的值。 |
点击查看所有 jQuery 教程 文章: https://codercto.com/courses/l/35.html
JavaScript and Ajax for the Web, Sixth Edition
Tom Negrino、Dori Smith / Peachpit Press / August 28, 2006 / $24.99
Book Description Need to learn JavaScript fast? This best-selling reference’s visual format and step-by-step, task-based instructions will have you up and running with JavaScript in no time. In thi......一起来看看 《JavaScript and Ajax for the Web, Sixth Edition》 这本书的介绍吧!