scroll on top using jquery
Solved:
$('html, body').animate({scrollTop: '0px'}, 300);
you can set 0 instead of 300 its quickly go on top and you can change selector where you scroll means if you require scroll top to div just change selector and its working
Comments
Post a Comment