Set “top,left” of an element with the position relative to the parent in jQuery
The .offset([coordinates]) method set the coordinates of an element but only relative to the document. Then how can we set coordinates of an element but relative to the parent? The.position() method get only "top,left" values rel…
Read original article