how to change background color of multiple td elements using jquery
<p>I'm unable to change the background color of multiple td elements in a table using jquery. </p>

<p>HTML code :</p>

<pre><code>&lt;td id="trueValue"&gt;/com/website/seo/&lt;/td&gt;

&lt;td id="trueValue"&gt;/com/website/seo/&lt;/td&gt;

&lt;td id="falseValue"&gt;/com/website/seo/&lt;/td&gt;

&lt;td id="falseValue"&gt;/com/website/seo/&lt;/td&gt;
</code></pre>

<p>Jquery code :</p>

<pre><code> $("td").each(function() {
 var i = $(this).attr("id");
 if (i == "trueValue") {
    $(i).css("background-color", "green");
    }
 });
</code></pre>

<p>The above jquery is doing nothing. Can someone correct my code please? </p>

<p>Many Thanks in advance.</p>