欢迎您 本站地址:  
返回首页   返回编程教学   人生故事  在线html编辑器  图片格式在线转换  http状态码  红楼梦知多少  十万个为什么  单机游戏  学习TypeScript 

jQuery [attribute] 选择器

jQuery 选择器 jQuery 选择器

实例

选取带有 id 属性的每个元素:

$("[id]")

尝试一下 >

定义和用法

[attribute] 选择器选取带有指定属性的每个元素。


语法

$("[attribute]")

参数 描述
attribute 必需。规定要查找的属性。


jQuery 选择器 jQuery 选择器

小库提示

扫描下方二维码,访问手机版。