Hi,
I would like to know if there is any prototype equivalent to the JQuery's .offset() function?
Thanks for your help.
Hi,
I would like to know if there is any prototype equivalent to the JQuery's .offset() function?
Thanks for your help.
If you are looking for offset relative to document, go for:
If you are looking for offset relative to an element however, go for:
jQuery's offset (element position relative to document) maps to Element.cumulativeOffset
similarly, jQuery's position (element position relative to offset parent) maps to Element.positionedOffset