I've got the following code in order to ease a scroll to the top of a page:
$(document).ready(function(){
$('#top').on("click",function(){
$("body").stop().animate({scrollTop: 0},"slow");
});
})
It works perfectly fine on chrome, doesn't work on IE, in IE, the scrollbar doesn't even move. Nothing happens.
Any suggestions how to deal with it?