just starting to get my hands dirty with the jQuery goodness and the first task i’m trying to tackle is to underline a link after it has been clicked. Naturally, after a different link in the same div was clicked the previous one is no longer underlined…
Regards
So basically, you are wanting a kind of navigation menu that changes the style of the link once clicked. First, make a style that just underlines:
The code you will be modifying is…
Just a few links with some type of class that denotes that it is the links u want to underline and not underline.
Next, add a little jQuery magic to apply the style upon clicking. And at the same time, you will want to remove the style from all others.
And, that’s it. I tried to as verbose as possible to explain what each step does. Obviously, you can makes the class names shorter and remove the comments to make it small and lean.