Watch Mouse
Programmer's dairy.
Find element in DOM by mutliple classes
up vote
down vote
accepted
If you want an intersection, just write the selectors together
without spaces
in between.
$
(
'.a.b'
)
So for an element that has an ID of
a
with classes
b
and
c
, you would write:
$
(
'#a.b.c'
)
Newer Post
Older Post
Home