Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

how to use jquery ScrollToto scroll to div element?

Posted on 2010-11-25
1
Medium Priority
?
705 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 2000 total points
ID: 34211455
Try
$.scrollTo( '#products_main_contents', 800 );

Open in new window

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
This article discusses how to implement server side field validation and display customized error messages to the client.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
Suggested Courses

580 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