$('#calendar .barIcons > .barIcon').each(function (i, icon) { var left; icon = $(icon); left = parseInt(icon.position().left, 10); alert(left); // increases each time return; // Comment this and now the alert is zero each time. icon.css({ "position": "absolute" }); });