I'm able to get the parent element but I unable to successfully get the child elements and their attributes. I'd like to be able to extract the id in the input element below and put it in the array called links.
I tried this
var links = [];
$(".sportmenu li").each(function(i, item) {
links.push(
$(item).children("input")[0].id
);
});
console.log(links);
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<ul class="sportmenu ui-listview">
<li class="table">
<span class="fav-box table-cell">
<input type="checkbox" id="TOP_SPORT-246712-Serie B" class="star" readonly="" value="on">
<label></label>
</span>
<div class="competition-info">
<span class="table-cell">
<a href="javascript:;" class="ui-link">
<span class="league">Serie B</span>
</a>
</span>
<span class="val-box table-cell">
<span class="val">2</span>
</span>
</div>
</li>
</ul>