jquery有两个或更多子选择器

Sys*_*ral 3 jquery

如何编写具有两个condtional选择器的选择器,例如

$("#version option:selected **AND** option:contains('some text')")
Run Code Online (Sandbox Code Playgroud)

Har*_*men 7

就像你可以:visited:hover在CSS中使用一样,你可以在jQuery中做同样的事情:

$("#version option:selected:contains('some text')")
Run Code Online (Sandbox Code Playgroud)