$("#footer div ul li").each(function(a) {
$("#footer div ul li:nth-child(" + a + ")").css({
left : 275*a - 275 + "px"
});
});
I want to generate all li’s left offset with jQuery.
First element should have left:0px, second 275px, third 550px, etc.
I found there’s something like .each() loop, but it works only for first element.
Could somebody tell me what am I doing wrong?
Just use
this