scroll up and down a div on button click using jquery

scrollBottom is not a method in jQuery.

UPDATED DEMO – http://jsfiddle.net/xEFq5/10/

Try this:

   $("#upClick").on("click" ,function(){
     scrolled=scrolled-300;
        $(".cover").animate({
          scrollTop:  scrolled
     });
   });

Leave a Comment