I want to use jQuery to have to change my hyperlink to bold upon clicking it and switch it back to normal when clicking another link. I have following links in my webpage:
<div id="navigation">
<ul>
<li id="home"><a href="/index.html">Home</a></li>
<li id="test"><a href="/tests.html">Tests</a></li>
<li id="job"><a href="/jobs.html"> Jobs</a></li>
</ul>
</div>
with the following styles:
#navigation { float:right; white-space:nowrap;}
#navigation ul{ list-style-type: none; line-height:14px; padding-top:20px; float:left; }
#navigation ul li{ float:left; display:inline; border-right:solid 1px #757171; padding-right:8px; margin-right:8px; }
#navigation ul li.last{ margin-right:0; border:0; padding-right:0; }
#navigation ul li a{ color:#fff; text-decoration: none;}
#navigation ul li a:hover,
#navigation ul li a.active { color:#00e0ff; }
How can I change the style of selected link to bold and/or grey?