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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -