title: jQuery: equivalent of .live() for CSS?
body: <p>How do I add CSS to elements that have been dynamically created?</p>
  
  <p>Here is a simple example of what I would like to do:</p>
  
  <pre><code>$(document).ready(function() { 
      $('#container').html('&lt;p id="hello"&gt;hello world&lt;/p&gt;');
      // The following line doesn't work. 
      $('#hello').css("background-color", "#FFF");
  });
  </code></pre>
  
  <p>The reason I want to do this, and I can't think of another way of doing it, is that I want to use background colour on alternate rows of a table that is dynamically generated: </p>
  
  <pre><code>$("#results-table tr:even").css("background-color", "#FFF");
  </code></pre>
  
  <p>I need to use this line of jQuery specifically for IE8 and below, which don't support <code>nth-child</code> CSS selectors. </p>