Avatar of Refael
Refael
Flag for United States of America asked on

jquery anchor link


Hello Experts,

i am trying to do the following:

I have an FAQ page. each question has an anchor link (<a name="faq1" class="anchor"></a>)
on the right hand-side i have a list of all the questions with a link to the anchor (<a href="#faq1">).

What i am trying to achieve is to highlight the question when its active. Meaning when the browser is at e.g. "page_name.html#faq5" the faq5 in the page is highlighted.

is it possible?  
jQueryJavaScript

Avatar of undefined
Last Comment
Refael

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
zappafan2k2

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Refael

ASKER
zappafan2k2, thank you so much!

It took sometime for me to understand the logic.
Thank you so much for the in-depth example!
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy