Hi Guys,
I have the following html
<div class="sub">
<a href="#" id="people">People</a>
</div>
which has the CSS for the "a" as
color:#999999;
font-size:31px;
I am trying to use jQuery to get this to change the color using a class "active" which just has "color:#777!important;" but everytime I do this it just doesn't work. I am trying to do it via
$('.sub').click(function() {
$('a#people').addClass('active');
})
But it doesn't work ? Anyone know how I can add a class to an "a" element ? i.e. tried this but doesn't work
$('.sub a').addClass('active');
Thanks