Retrieve table with jQuery and change color of all th's
<p>I have on the page alot of tables, but with a jQuery I need to get only that <code>table</code> which has 1 <code>th</code> with the class <code>ms-vh2-nograd</code>, all others I pass. </p>

<p>So in other words I search for <code>th.ms-vh2-nograd</code> and I need to get parent parent I think
and then for each <code>th</code> in that <code>table</code> I need to set background color to white.</p>

<p>Here is the code which I have, but it doesnt work, anyone has any idea? </p>

<pre><code>jQuery(document).ready(function()
{
    $table=$("table.ms-listview ms-vh2-nograd")
    $table.("th").each(function()
    {
        this.style.backgroundcolor="white"
    });
});
</code></pre>

<p>UPDATE:
And the links in those th's must not have hover over ... functionality</p>
