K
K
Konstantin2010-09-24 00:08:00
JavaScript
Konstantin, 2010-09-24 00:08:00

How to select elements only with a certain set of classes?

Maybe a stupid question, but I can't figure it out.
There are 3 boxes with class .one and one box with class .one and .two

How do I select only element in jQuery that has both .one and .two classes?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel Voronin, 2010-09-24
@evil_random

Um... $('.one.two') won't work?

T
tyomitch, 2010-09-24
@tyomitch

$(".one").find(".two")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question