been reading other posts about $(this) and what it refers to.

And still I dont understand.

I thought $(this) is a refernce to the object I am operating on, no?

So this (no pun intended, tee hee) should work ,I thought:

$('#div').animate({top:parseInt($(this).css('top'))+50},400);

because my absolute-positioned element $('#div').css('top') definitely
returns '100px'. and the parseint returns, as expected, '100'

what gives? what am I missing?

Reply via email to