9

jQuery Class selector works well if you have a single class assigned to an element. What if I assign two classes to an element(Ex: <div class="one two">), how can I find that element if I know these two classes?

3

2 Answers 2

6

$("div.one.two")

4
$('.one.two');

more on multiple selectors if you just did a search on SO first.

Not the answer you're looking for? Browse other questions tagged or ask your own question.