[jQuery] filter expression with multiple class names
Hello again,
Does anyone know how (or if it is possible) to select elements by
multiple class names?
For example, given the following div elements:
<div class="class-one">
<div class="class-one class-two">
If I wanted to get all div elements that have *both* class-one and
class-two, the only straight-forward way I can think of is the
following:
$("div").filter(".class-one").filter(".class-two");
It would be nice if I could do this with a single expression
instead...is that possible?