.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])
You could try jQuery UI's .position method.
$("#mydiv").position({ of: $('#mydiv').parent(), my: 'left+200 top+200', at: 'left top' });
Check the working demo.