Scrolling up and down using jquery

First of all just create a function goToByScroll() and replace its id by which you want to move threw out

 function goToByScroll(id){
          $('html,body').animate({scrollTop: $("#"+id).offset().top},'slow');
    }



   and then it  like below ....

    <script>
    goToByScroll("theIdIWantToGoTo");
    </script>

Post a Comment

Previous Post Next Post