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 ran through similar problem and found that I was trying to get the offset of footer but I was loading my script inside a div before the footer. It was something like this:
I have some contents
So, the problem was, I was calling the footer element before the footer was loaded.
I pushed down my script below footer and it worked fine!