title: Replace HTML Element Contents
body: <p>I have the following HTML.</p>
  
  <pre><code>&lt;div class="red"&gt;Div One&lt;/div&gt;
  &lt;div class="green"&gt;Div Two&lt;/div&gt;
  &lt;div class="blue"&gt;Div Three&lt;/div&gt;
  </code></pre>
  
  <p>What's the best way of replacing the text in the div with the green class?</p>
  
  <p>Also, I need a way of retrieving the contents of a tag by element name (), or element name and class ().</p>
  
  <p>Thanks for your help!</p>