title: Get text of div
body: <p>I want to get the text of the next id (the text is: "Show More").</p>
  
  <pre><code>&lt;div id="show_more_less" onclick="Show_More_Less();"&gt;Show more&lt;/p&gt;
  
  function Show_More_Less() {
      var str = document.getElementById('show_more_less').text;
  }
  </code></pre>
  
  <p>I tried: <code>.value</code> but it doesn't work.</p>