Hi,
If I had two sets of classes, like so
<div class = "link 1"></div>
<div class = "link 2"></div>
<div class = "link 3"></div>
....
<div class = "link x"></div>
and
<div class = "target 1"></div>
<div class = "target 2"></div>
<div class = "target 3"></div>
....
<div class = "target x"></div>
how can i get the nth link
to scroll the page to the nth target
using jQuery scrollTo
?
The classes 1, 2, 3.... are dynamically generated.
Thanks.