Click here to Skip to main content
15,891,841 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Suppose I have a webpage which contains only the links(anchor) in it.... also suppose there are 5 anchor(links) on that page.........

My aim is to underline only that anchor that was clicked by the user.........or is being active now

Kindly tell me about it.... I have a rough idea of how to do it but didn't know the exact code for it...

My idea is to use jquery....and every time the page refreshes.....in the document.ready function there should be a check like this

if('.class-name a (any-anchor)') is clicked than

text-decoration:underline

kindly tell me the code if my idea was right or elsewhere telll me the right solution for it...plz
Posted
Comments
[no name] 11-Jan-12 13:35pm    
Don't repost the question. This is essentially the same as your previous question. If you have further details or clarifications you should edit the question rather than posting a new one.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900