views:

12

answers:

2

I made Q&A page. I'd like to click on the question and have the page scroll to the question using JQuery. What script do I use or does anyone have an example I can learn from?

Many thanks.

Erik

A: 

In simple cases (depends on how you "made" your Q&A page), you don't even need JQuery or any JavaScript.

Simply mark your answers with a name tag (for example <A NAME="Answer11"/> ) and then have every question be wrapped into a link to correct tag, e.g. <LI><A HREF="#Answer11">Question 11</A>.

DVK
A: 

I'd suggest LocalScroll which I've used in the past and found very easy to implement.

Ian Devlin