title: Change text inside <h2> Text I would change </h2> element using javascript
body: <p>I need to change the text inside <h2></h2> HTML element using javascript, but I have no idea about how to do it. ¿Any help?</p>
  
  <p>I've got it defined like: </p>
  
  <pre><code>&lt;h2 id="something"&gt;Text I want to change.&lt;/h2&gt;
  </code></pre>
  
  <p>Im trying to do it with: </p>
  
  <pre><code>document.getElementById("something").value = "new text";
  </code></pre>
  
  <p>But it doesn't work.</p>
  
  <p>Thanks</p>