Descendent or self selector in jQuery
Posted
by tttppp
on Stack Overflow
See other posts from Stack Overflow
or by tttppp
Published on 2010-04-09T09:16:53Z
Indexed on
2010/04/09
9:23 UTC
Read the original article
Hit count: 294
I want to search for all elements with class needle
in all elements returned by jQuery('.haystack')
and have tried jQuery('.haystack .needle')
, but this doesn't seem to pick up the case where an element has both classes. Is there a selector that will do this?
© Stack Overflow or respective owner