jQuery API 中文手册
首页
API
选择器
核心
ajax
属性
CSS
文档处理
事件
效果
工具
筛选
事件对象
延迟对象
回调函数
Html + Css
网站模板
服务器
jQuey 选择器
基本
#id
element
.class
*
selector1,selector2,selectorN
层级
ancestor descendant
parent > child
prev + next
prev ~ siblings
基本筛选器
:first
:not(selector)
:even
:odd
:eq(index)
:gt(index)
:lang
:last
:lt(index)
:header
:animated
:focus
:root
:target
内容
:contains(text)
:empty
:has(selector)
:parent
可见性
:hidden
:visible
属性
[attribute]
[attribute=value]
[attribute!=value]
[attribute^=value]
[attribute$=value]
[attribute*=value]
[attrSel1][attrSel2][attrSelN]
子元素
:first-child
:first-of-type
:last-child
:last-of-type
:nth-child
:nth-last-child()
:nth-last-of-type()
:nth-of-type()
:only-child
:only-of-type
表单
:input
:text
:password
:radio
:checkbox
:submit
:image
:reset
:button
:file
表单对象属性
:enabled
:disabled
:checked
:selected
混淆选择器
$.escapeSelector(selector)
首页
/
jQuery 选择器
/ 子元素 / :only-of-type
:only-of-type
返回值
jQuery
V1.9
概述
选择所有没有兄弟元素,且具有相同的元素名称的元素。
如果父元素有相同的元素名称的其他子元素,那么没有元素会被匹配。