I'm using the scrollTo plugin for jQuery on a website. I made a vertical scrolling div wher I can scroll to different div by clicking on buttons. And now I need to make a back button to return to the previous div.
what I want is the opposite of
this.next()
I tried
this.prev()
but it doesn't work.
$('#tabs').click
(
function()
{
$('#wrapper').scrollTo(this.prev(), 'medium')
}
);