Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
How would I use jQuery CSS Selectors to find for instance:
css class name: "Text" which is a div inside of dom object "wrapper"?
$('#wrapper div.Text') or $('#wrapper .Text'), depending on how specific you want to be.
Add a comment
To add to nezroy's answer: $('#wrapper > div.Text') if you only want elements directly inside the wrapper and not all that might be nested inside.
either
$('#wraper .text')
or
$('.text', $('#wraper'))
will work well with same results (even tho, i guess the second option is faster)
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.