$(function(){ $('ul li').each(function(i){ $(this).offset().top; }) })