How to get position of element relative to its parent in jquery or javascript?

I want to get the position( x-y coordinates) of an element relative to its parent in javascript. I am trying offset() but doesn't seems right.


Asked 16 Nov, 16 at 11:14 AM

Rishu Singh
Html Javascript

Answer

Not answersed yet.