The position() method is an inbuilt method in jQuery which is used to find the position of the first matched element relative to its parent element in the DOM tree.
Parameters: This method does not contains any parameters.
Return Value: This method returns the position of the first matched element.
Below example illustrate the position() method in jQuery:
Before click on the button:
After click on the button: