title: How to change color of a row in a table
body: <p>I'm developing a table in html. Every rows have a checkbox with the same attribute name as tag tr. So I want to color the row selected in yellow if that raw is the unique selected, otherwise color in blue all the rows selected. So I was developing this:</p>
  
  <pre><code>var checked = $("input[@type=checkbox]:checked");  
                  var nbChecked = checked.size(); 
                  if(nbChecked==1){
                     var row = $('tr[name*="'+checked.attr("name")+'"]');
                     row.style.backgroundColor="#FFFF33";
                  }
  </code></pre>
  
  <p>But color doesn't change :( can you tell me why? can you help me? </p>
  
  <pre><code>&lt;TR valign=top name="&lt;?php echo $not[$j]['name'];?&gt;"&gt;
          &lt;TD width=12 style="background-color:#33CCCC"&gt;
          &lt;div class="wpmd"&gt;
              &lt;div align=center&gt;
                  &lt;font color="#FF0000" class="ws7"&gt;
                      &lt;input type="checkbox" name="&lt;?php echo $not[$j]['name'];?&gt;" onchange="analizeCheckBox()"/&gt;
              &lt;/div&gt;
  .
  .
  .
  .
  .
  .
  </code></pre>