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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.