tags:

views:

32

answers:

3

Hi,

Can somebody help me, I want to use in jquery somethink like "ScrollTo".

When I click something , --- > scroll to some div

Like in HTML with anchors

Thanks !!!

+1  A: 

Try the ScrollTo jquery plug-in.

tbreffni
A: 

Have a look at this please.

Sarfraz
+2  A: 

If you're looking for a quick way to do it, this should work:

  $('html').animate({scrollTop: $('#myelement').offset().top});

See jQuery animate for more options.

scurker
You need to change 'html' to 'body' to make it work. Nice trick, though!
Matt Winckler