Why is it important to use $(this) instead of re-selecting the class?
I am using a lot of animate and css editing in my code, and I know I can simplify it by using
$(document).ready(function(){ $('.somediv').click(function(){ $(this).addClass('newDiv'); // this means the div which is clicked }); // so instead of using a selector again $('.somediv'); }); // you use $(this) which much better and neater:=)