GET

x=$("#elementName").offset().left;
y=$("#elementName").offset().top;

SET

$("#anotherElementName").css({left:x,top:y});


NoMatter wrote:
Hi Guys ,
Its my first time here. My Question is ..
When a button click , I need to change the positions of few DIVs .
How do I assign X and Y .
I saw there is a way of get Element's X , and Y but how to Setting X
and Y .

Thanks in advance,
------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG - www.avg.com Version: 8.5.387 / Virus Database: 270.13.18/2243 - Release Date: 07/17/09 06:08:00


Reply via email to