.offset([coordinates]) method set the coordinates of an element but only relative to the document. Then how can I set coordinates of an element but relative to
.offset([coordinates])
$("#mydiv").css('top', 200); $("#mydiv").css('left', 200);