Scroll to top with a splitter

1 posts, 0 answers
  1. Gabriel
    Gabriel avatar
    79 posts
    Member since:
    Nov 2011

    Posted 16 Feb 2012 Link to this post

    I have a splitter pane with a scrollbar and I'm try to do a simple scroll to top with jQuery.
    Here is the Javascript:
    $('a[href=#top]').click(function () {
                $('html, body').animate({ scrollTop: 0 }, 'slow');
                 return false;
    });


    Problem is, it doesn't work. Not matter if you give the ID of the pane or splitter itself, nothing works. Is there a simple fix for this or am I missing something?
Back to Top