jQuery选择器分为
目录
基本选择器
ID选择器 #id
类选择器 .class
标签名 div
通配符 *
组选择器 select1,select2
层次选择器
空格
>
+
~
过滤选择器
基本过滤选择器
:first
:last
:not(selector)
:even
:odd
:eq(index)
:gt(index)
:lt(index)
:header
:animated
内容过滤选择器
:contains()
:empty
:parent
:has(selector)
可见性过滤选择器
:hidden
:visible
属性过滤选择器
:[attr]
:[attr=val]
:[attr!=val]
:[attr^=val]
:[attr$=val]
:[attr*=val]
[selector1][selector2][selectorN]
子元素过滤选择器
:nth-child(index/odd/even/equation
:first-child
:last-child
:only-child
表单对象属性过滤选择器
:enabled
:disabled
:checked
:selected
表单选择器
:input
:text
:password
:radio
:checkbox
:submit
:image
:reset
:button
:file
:hidden