Possible Duplicate:
Get and set position with jQuery .offset()
Is possible to set the offset on a li?
I have 3 <li>
's inside a <ul>
And i want to change their positions with jquery. I want to be able to set their positions according to the values stored in cookies.
for example:
$('#saved3').offset({left: $.cookie("moved3left")});
$('#saved3').offset({top: $.cookie("moved3top")});
If i alert the cookies, it alerts the value right...