On Feb 7, 2008 6:54 AM, Olivier Percebois-Garve <[EMAIL PROTECTED]> wrote:
> $li.each(function(o, i){ > $(o).setBg(); > }); > I think you want: $li.each(function(i, o) { setBg(o); }); -or- $li.each(function() { setBg(this); }); Also, on the documentation for each(): http://docs.jquery.com/Core/each I noticed i comes first, o second. - Richard