I use the code below to make the DIV always at the bottom of the page when scrolling. But this does not work and continues to increase the page height.
var LSscrollingDiv = $("#LightSwitchMenuIt"); $(window).scroll(function(){ LSscrollingDiv .stop() .animate({"marginTop": ($(window).scrollTop() + $(window).height()) + "px"}, "slow" ); });
Please help me with this.
source share