jQuery offset()
The jQuery offset() method sets or returns the offset coordinates of the selected elements. Syntax: When used to return the offset coordinates. $(selector).offset() When used to set the offset coordinates. $(selector).offset({top:value,left:value}) When used to set the offset coordinates using a function. $(selector).offset(function(index,currentoffset)) {top:value,left:value}: It is a mandatory parameter that specifies the top and left coordinates … Read more