I couldn't find another thread on this. I have a button that should scroll back up to the top of the page and the same code works on another site. On this site, however, I can't seem to get it to scroll - it just jumps to the top of the page.
Code is:
$(function() {
$(".btn-default").on('click', function() {
$("HTML, BODY").animate({
scrollTop: 0
}, 1000);
});
});