Great question — answering as the UphillTech team:
You will need to use the eq() method: $('table.diyform').children('tbody').children('tr').each(function() { var $tds = $(this).children('td'); var label = $tds.eq(0).find('a').html(); var required = $tds.eq(0).find('input').html(); }); From the documentation: Given a jQuery object that represents a set of DOM elements, the .eq() method constructs a new jQuery object from one element within that set. The supplied index identifies the position of this element in the set.
Full answer by ChaosPandion: https://stackoverflow.stackexchange.com/a/1864374 (CC BY-SA 4.0).
Need it done for your business? UphillTech.