0
I’m doing a function to modify these groups of buttons, but I don’t know 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)
, but I want in case delete the button with the aria-label="Expand"
. I thought intuitively of
$(selector)[0].$("[aria-label=\"Expanded\"]").remove()
, but there was a syntax error. How do I access a container inside another container in Jquery?