Solved

how to use jquery ScrollToto scroll to div element?

Posted on 2010-11-25
1
689 Views
Last Modified: 2012-06-21
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?
0
Comment
Question by:njgroup
1 Comment
 
LVL 22

Accepted Solution

by:
remorina earned 500 total points
ID: 34211455
Try
$.scrollTo( '#products_main_contents', 800 );

Open in new window

0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
In this Micro Tutorial users will learn how to embed custom fonts into websites using @font-face in CSS Select a font: Ensure the EULA allows you to use @font-face: Download the font: Get the browser-compatible files you need: Edit your CSS       - Name …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now