Scrolling to previous div in jQuery
I am using scrollTo plugin for jQuery on a website. I made a vertical scrolling div wher which I can scroll to another div by clicking on the buttons. And now I need to make a back button to go back to the previous div.
what i want is the opposite
this.next()
I tried
this.prev()
but that won't work.
$('#tabs').click
(
function()
{
$('#wrapper').scrollTo(this.prev(), 'medium')
}
);
+1
a source to share