possible to use jquery to skip to a certain part of a page, based on its div class?

Posted by Brad on Stack Overflow See other posts from Stack Overflow or by Brad
Published on 2011-03-17T16:06:14Z Indexed on 2011/03/17 16:09 UTC
Read the original article Hit count: 175

Filed under:
|
|

I want a link that scrolls the page to the start of the <div class="content-body">

The same functionality as a: <a href="#maincontent">Skip</a>, and placing <a name="maincontent"></a> right next to <div class="content-body">

I am seeing if it is possible via jQuery, and want to know if I would run into any problems down the road using that method (besides the user having javascript disabled).

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery