This is a migrated thread and some comments may be shown as answers.

Scroll to top with a splitter

0 Answers 39 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Gabriel
Top achievements
Rank 1
Gabriel asked on 17 Feb 2012, 03:35 AM
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?

No answers yet. Maybe you can help?

Tags
Splitter
Asked by
Gabriel
Top achievements
Rank 1
Share this question
or