jquery scroll to top of div animate

JavaScript
window.scrollTo({top: 0, behavior: 'smooth'});

reference : https://stackoverflow.com/questions/15935318/smooth-scroll-to-top$("#yourDivID").animate({scrollTop:0}, "smooth");$('#DIV_ID').scrollTop(0);
Source

Also in JavaScript: