jQuery参考手册
jQuery [attribute] 选择器
jQuery [attribute] 选择器
jQuery [attribute] 选择器
![jQuery [attribute] 选择器 jQuery [attribute] 选择器](http://static.verydoc.net/img1/up.gif)
实例
选取带有 id 属性的每个元素:
  
    $("[id]")
  
尝试一下 »
定义和用法
[attribute] 选择器选取带有指定属性的每个元素。
语法
$("[attribute]")
| 参数 | 描述 | 
|---|---|
| attribute | 必需。规定要查找的属性。 | 
![jQuery [attribute] 选择器 jQuery [attribute] 选择器](http://static.verydoc.net/img1/up.gif)
| jQuery [attribute] 选择器 | 
|---|
![jQuery [attribute] 选择器 jQuery [attribute] 选择器](http://static.verydoc.net/img1/up.gif)
选取带有 id 属性的每个元素:
[attribute] 选择器选取带有指定属性的每个元素。
| 参数 | 描述 | 
|---|---|
| attribute | 必需。规定要查找的属性。 | 
![jQuery [attribute] 选择器 jQuery [attribute] 选择器](http://static.verydoc.net/img1/up.gif)
| jQuery [attribute] 选择器 | 
|---|