Javascript: td value == td value
<pre><code>&lt;tr&gt;
&lt;td class = "nowrap cr" id="cr1"&gt;123123&lt;/td&gt;
&lt;td class = "nowrap ch" id="ch1"&gt;123123&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class = "nowrap cr" id="cr2"&gt;123123&lt;/td&gt;
&lt;td class = "nowrap ch" id="ch2"&gt;123123&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class = "nowrap cr" id="cr3"&gt;467574&lt;/td&gt;
&lt;td class = "nowrap ch" id="ch3"&gt;123123&lt;/td&gt;
&lt;/tr&gt;
</code></pre>

<p>How do I set the font-weight: bold in tr where chID == crID</p>

<pre><code>&lt;script type="text/javascript"&gt;
$(function() {
    for(var i =0;i &lt; 20;i++)
    {
        if($('#cr'+i).val() == $('#ch'+i).val())
        {
            $('#cr'+i).parent().css('font-weight', 'bold');
        }
    }
});
&lt;/script&gt;
</code></pre>

<p>Dont' working.
Any ideas? Sorry for bad english</p>
