title: Change background color using jQuery
body: <p>I am trying to change the background color with jQuery. What am I doing wrong? I know this can be done with CSS a lot easier but I am trying to do it with jQuery.  </p>
  
  <p>Link to <a href="http://jsfiddle.net/p2Uwx/1/" rel="nofollow noreferrer">jsfiddle</a>. I am trying to change the background of "Hi" to yellow.  </p>
  
  <pre><code>window.onload=function(){
       $('.myClass td').css({'background-color': 'yellow'}); 
  }
  
  &lt;table&gt;
      &lt;tr class="myClass"&gt;
          &lt;td&gt;Hi&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;Bye&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>