jQuery CSS manipulation not working
<p>I'm trying to color the text in <code>#fav</code> red using jQuery, but it is not working.</p>

<p>HTML</p>

<pre><code>&lt;div id="favorite"&gt;
  &lt;p id="fav"&gt; "favorite"&lt;/p&gt;
&lt;/div&gt;
</code></pre>

<p>jQuery</p>

<pre><code>$('#fav').click(function(){
  $(this).css('color', 'red');
});
</code></pre>

<p>It all seems to be correct, I've checked my links are all correct by testing a simple <code>.onload</code> alert but I've been stuck with this for a while now.</p>