I'm aware of the position method, but that retrieves the position relative to the offset parent. Do I just throw in a loop to transverse up the document nodes?
I guess that I'm surprised that it isn't part of the core, and I'm wondering if it's tucked away somewhere that I don't know about.
jQuery(elem).offset();
See http://docs.jquery.com/CSS/offset for a summary
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With