I'm making a function to modify these groups of buttons, but I'm not sure how to access containers inside containers with Jquery.
<div class="buttons">
<button aria-label="Right">Right</button>
<button aria-label="Left">Left</button>
<button aria-label="Center">Center</button>
<button aria-label="Expand">Expand</button>
</div>
I can access this container with $(selector)
, however I want to delete the button with aria-label="Expand"
. I thought intuitively in
$(selector)[0].$("[aria-label=\"Expanded\"]").remove()
, but gave syntax error. How do I access a container inside another container in Jquery?