Change CSS class in head tag
<p>Im adding a css class to head tag like:</p>

<pre><code>$("head").append("&lt;style type='text/css'&gt;.classname{color: gold}&lt;/style&gt;");
</code></pre>

<p>Now i need to change the color attribute i.e. from gold to green.
Any solutions for that?</p>

<p>Note: I NEED to do this in head tag. something like </p>

<pre><code>$('.classname').css('color','green');
</code></pre>

<p>does not fit my requirements.
Thanks.</p>
