.offset Method

Syntax

.offset()

Description

The .offset method returns the left and top position value of the specified element in pixels. The .offset(coordinates) style property allows to change the selected element position. The below example shows how to change change the style of the specified element.

Example Code

Result:


Jquery offset Style Property.

Click Mouse Once Here




Ask Questions

Ask Question