Why do I have to use $(this)?

Viewed 1928

Possible Duplicate:
jQuery $(this) vs this

In jquery sometimes I find that within a function I have to use $(this) because this won't work:

var listItems = $('li');
listItems.each(function(index) {
    $(this).css({ 

    })
})

Any ideas as to the reason why?

5 Answers
Related