Color not changing using Jquery
<p>I want the default "CSS class"to be black, and when using this select function for "selected" to have white text. I don't know where I'm going wrong</p>

<pre><code>$(function() {
   $('a.link').click(function() {
       $('a.link').removeClass('selected');
       $(this).addClass('selected');
       $(this).css('color', 'white');
       $(this).addClass('result-holder');
       $(this).css('color', 'black');


   });
});
</code></pre>

<p>Image demonstrating the problem:</p>

<p><img src="http://i.stack.imgur.com/ZOPXb.png" alt="enter image description here"></p>

<p><a href="http://imgur.com/AquDa" rel="nofollow">http://imgur.com/AquDa</a></p>
