Home › Forums › JavaScript › JQuery horizontal scroll › Re: JQuery horizontal scroll
June 15, 2011 at 11:35 am
#73005
droid
Member
Thanks guys, I did write an identical function like the one below without sucess before I posted my issue here.
$('.nav a').click(function(){
$.scrollTo( $(this).attr('href'), 800, { easing: 'swing' });
return false;
});
The only way this seems to work is when I use a markup like the one below. If I wrap my list inside a div called nav instead things go wrong.
Thanks Eric I checked your link, that’s exactly how I wanted it to be. Now it acts like it should.