Are you looking for offset ?
http://docs.jquery.com/CSS/offset
Brian.
On Mon, Mar 24, 2008 at 10:54 AM, Legster [EMAIL PROTECTED] wrote:
Is there an easy way to find the current X, Y location of any div
area?
Example of what I am trying to find:
$(this).xpage
or
$(#mainDiv).ypage
Just use javascript:
var x = this.offsetLeft;
var y = this.offsetTop;
Legster [EMAIL PROTECTED] wrote:
Is there an easy way to find the current X, Y location of any div
area?
Example of what I am trying to find:
$(this).xpage
or
$(#mainDiv).ypage
Those currently returns
2 matches
Mail list logo