on-internet
← Community

jQuery: Difference between position() and offset()

Stack Overflow ·

What is the difference between position() and offset()? I tried to do the following in a click event: console.info($(this).position(), $(this).offset()); And they seem to return exactly the same... (The clicked element is within a table cell in a table)

Comments

Sign in or sign up to comment and upvote.

No comments yet.