Skip to content Skip to sidebar Skip to footer

How To Set Scrollbar To Top Of Section / Forget Scroll Position

I am using jQuery UI Accordion. One section has a scroll bar. I would like that scroll bar to default to the top every time that section is opened. Currently, it 'remembers' its pr

Solution 1:

You can set the scroll position of .ui-accordion-content to 0 at the accordion's change or changestart event.

Solution 2:

set the scrollTop-property of the element to 0

Post a Comment for "How To Set Scrollbar To Top Of Section / Forget Scroll Position"