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?

dev.e.loper
  • 35,446
  • 76
  • 161
  • 247

2 Answers2

6

$("div.one.two")

Matthew
  • 2,024
  • 15
  • 19
4
$('.one.two');

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

Community
  • 1
  • 1
Reigel Gallarde
  • 64,198
  • 21
  • 121
  • 139