Given a DOM element e, I would like to select all descendants that have class='foo'. How can I do this in jquery?
Use .find():
$(e).find('.foo')
(The documentation is your friend :))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With