how to use jquery ScrollToto scroll to div element?

hi,

I wanna scroll the page to specific html tag (div element), I use this code not non working:

$(window).stop().scrollTo($("#products_main_contents"), 800);

I have loaded all js requirements, such as jquery and scrollto js,


so how can I do that?
njgroupAsked:
Who is Participating?
 
remorinaConnect With a Mentor Commented:
Try
$.scrollTo( '#products_main_contents', 800 );

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.