I have a large file of this form [similar div\'s throughout]. I want to be able to select a div, find the number of ul\'s in it and traverse through ea
div
ul
$('.experiment').each(function() { var cnt = $(this).children('ul').length; $(this).find('.experiment-number').text(cnt); });