天天看點

Jquery9種選擇器

(1)、基本選擇器:

#id,class,element,*

;

(2)、層次選擇器:

parent > child,prev + next ,prev ~ siblings

(3)、基本過濾器選擇器::

first,:last ,:not ,:even ,:odd ,:eq ,:gt ,:lt

(4)、内容過濾器選擇器:

:contains ,:empty ,:has ,:parent

(5)、可見性過濾器選擇器:

:hidden ,:visible

(6)、屬性過濾器選擇器:

[attribute] ,[attribute=value] ,[attribute!=value] ,[attribute^=value] ,[attribute$=value] ,[attribute*=value]

(7)、子元素過濾器選擇器:

:nth-child ,:first-child ,:last-child ,:only-child

(8)、表單選擇器:

:input ,:text ,:password ,:radio ,:checkbox ,:submit

等;

(9)、表單過濾器選擇器:

:enabled ,:disabled ,:checked ,:selected

繼續閱讀