jQuery参考手册
jQuery [attribute^=value] 选择器
jQuery [attribute^=value] 选择器
jQuery [attribute^=value] 选择器
![jQuery [attribute^=value] 选择器 jQuery [attribute^=value] 选择器](http://static.verydoc.net/img1/up.gif)
实例
选取所有带有以 "nation" 开头的 name 属性的 <input> 元素:
$("input[name^='nation']")
尝试一下 »
定义和用法
[attribute^=value] 选择器选取每个带有指定属性且以指定字符串开头的元素。
语法
$("[attribute^='value']")
| 参数 | 描述 |
|---|---|
| attribute | 必需。规定要查找的属性。 |
| value | 必需。规定属性值以其开头的字符串。 |
![jQuery [attribute^=value] 选择器 jQuery [attribute^=value] 选择器](http://static.verydoc.net/img1/up.gif)
| jQuery [attribute^=value] 选择器 |
|---|
加载中,请稍侯......