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

查看所有标签

Reality Is Broken

Reality Is Broken

Jane McGonigal / Penguin Press HC, The / 2011-1-20 / USD 26.95

Visionary game designer Jane McGonigal reveals how we can harness the power of games to solve real-world problems and boost global happiness. More than 174 million Americans are gamers, and......一起来看看 《Reality Is Broken》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

SHA 加密
SHA 加密

SHA 加密工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具