I apologize if this question has already been answered. I\'ve tried searching for solutions but could not find any that suited my code. I\'m still new to jQuery.
I h
I had the same problem ("Uncaught TypeError: Cannot read property 'top' of undefined")
I tried every solution I could find and noting helped. But then I've spotted that my DIV had two IDs.
So, I removed second ID and it worked.
I just wish somebody told me to check my IDs earlier))