I have the next html:\[code\]<div id="segmenter"> <div id="variable" name="Zone"> <h3>Zona</h3> <ul> <li><input id="category" type="checkbox" value="http://stackoverflow.com/questions/14619690/Center">Center</li> <li><input id="category" type="checkbox" value="http://stackoverflow.com/questions/14619690/East">East</li> <li><input id="category" type="checkbox" value="http://stackoverflow.com/questions/14619690/South">South</li> </ul> </div> <div id="variable" name="Type of"> <h3>Tipo de Restaurante</h3> <ul> <li><input id="category" type="checkbox" value="http://stackoverflow.com/questions/14619690/Freestander">Freestander</li> <li><input id="category" type="checkbox" value="http://stackoverflow.com/questions/14619690/Instore">Instore</li> <li><input id="category" type="checkbox" value="http://stackoverflow.com/questions/14619690/Mall">Mall</li> </ul> </div></div>\[/code\]I want to iterate firstly over all div child of segmenter with id "variable", then iterate over all input with id "category" of each child "variable".Using Chrome Dev tools:With:\[code\]$("#segmenter > #variable")\[/code\]I get every div variable: \[code\][<div id=?"variable" name=?"Zona">?