I need to show each number of div in the page in order
And add the value of each div inside span
so if I have 4 divs inside page like this
var counter = 1; $('h1').each(function () { $(this).find('span').html(counter); counter++; });
jsFiddle example