零零乙
2009-06-24 22:28如何在 jQuery 中选择具有多个类的元素?
I want to select all the elements that have the two classes a
and b
.
<element class="a b">
So, only the elements that have both classes.
When I use $(".a, .b")
it gives me the union, but I want the intersection.
转载于:https://stackoverflow.com/questions/1041344/how-can-i-select-an-element-with-multiple-classes-in-jquery
- 点赞
- 回答
- 收藏
- 复制链接分享
11条回答
为你推荐
- 如何在 jQuery 中选择具有多个类的元素?
- javascript
- css
- jquery
- 0个回答
- 求大神指教!~实现多个相同元素,点击其中的一个元素选择后,其他的元素就不给再点击选择??
- html5
- javascript
- web
- php
- jquery
- 3个回答