addClass and removeClass code needs more
<pre><code>$(document).ready(function() { 

   var $NLG = $('div.post a'); 

   $NLG.filter(':contains("kandiman666")')
         .closest('div')
         .addClass('manager')
         .children('div.postmain')
         .css({backgroundColor:'transparent'})
         .children('div.posthead')
         .css({backgroundColor:'transparent'});  
});
</code></pre>

<p>Having trouble with the <code>$('div.post a');</code> because the code will only change the bg of the a href only changes. Before I had it only div.post but if you wrote kandiman666 it will change the background even if you're not that user :X so how would i go about this? The html below is leading to the html of the a href i need.</p>

<p>I also tried .parent('div') and it does nothing</p>

<pre><code>&lt;div class="post"&gt;
&lt;a name="9"&gt;&lt;/a&gt;
&lt;div class="postmain"&gt;
&lt;div id="p9" class="posthead"&gt;
&lt;div class="postbody"&gt;
&lt;div class="user"&gt;
&lt;div class="user-ident"&gt;
&lt;h4 class="username"&gt;
&lt;a href="/u1"&gt;
&lt;span style="color:#000099"&gt;
&lt;strong&gt;TheZombieNerd&lt;/strong&gt;
&lt;/span&gt;
&lt;/a&gt;
</code></pre>

<p>Ugh if someone could help me that would be great</p>
