title: How can I dynamically change css for html that is generated by javascript at runtime?
body: <p>I have some html that is generated programmatically using javascript at runtime.</p>
  
  <p>I want to be able to dynamically change the css properties of this html
  e.g.</p>
  
  <pre><code>  $(".pointsbox").css("background-color","green");
  </code></pre>
  
  <p>but it appears to not work as those html elements are not available at the time that the css change is called.</p>
  
  <p>I am pretty sure I have managed to do this before but I've forgotten what the function is called.</p>
  
  <p>Any help much appreciated!</p>