views:

565

answers:

1

I have an AJAX navigation and I would like to scroll the page to the main title when the user clicks a link.

Let's suppose that the title has a #sampleid: I would like to do something like scrollTo #sampleid.

How can I do that?

+1  A: 

I normally solve problem with this jQuery.ScrollTo

$.scrollTo( '#sampledid', 800, {easing:'elasout'} );
Jirapong