I have the following HTML.
<div class="red">Div One</div>
<div class="green">Div Two</div>
<div class="blue">Div Three</div>
What's the best way of replacing the text in the div with the green class?
Also, I need a way of retrieving the contents of a tag by element name (), or element name and class ().
Thanks for your help!