top doesn't work Uncaught TypeError: Cannot read property top of undefined offset

Practice




top doesn't work Uncaught TypeError: Cannot read property 'top' of undefined offset

var offsetTop = $(this).offset().top;

you may be passing the value of this incorrectly
or the node doesn't exist
and the method is being called before the Doom has loaded
use it in this context

Download free ESHKO English lessons and win an IPhone https://goo.gl/3al3Pd

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Scripting client side JavaScript, jqvery, BackBone"

Terms: Scripting client side JavaScript, jqvery, BackBone