javascript - jQuery looping through .children of .children -
i've been looking on asked questions , can't seem find solution scenario...
i'd able loop through children , children of children, etc...
the markup design looks similar this
<div> <div> <label></label> </div> <div> <label></label> </div> <div> <label></label> </div> </div>
i'd able select labels within specific div, regardless of direct parent.
i'd able select labels within specific div, regardless of direct parent.
it's css selector notation. assuming <div>
has id of mydiv
:
$('#mydiv label').each(function () { // stuff });
Comments
Post a Comment