title: Javascript to get link text
body: <p>My HTML looks like this:</p>
  
  <pre><code>&lt;div class="col-md-2" id="myName1"&gt;
    &lt;p&gt;
      &lt;a href="/something/121212"&gt;Get This Text&lt;/a&gt;
    &lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The question is how do I get the text "Get this Text"</p>
  
  <p>Something like this, but getting that text which is wrapped in the <code>p</code> and <code>a</code> tags:</p>
  
  <pre><code>function () {
    return document.getElementById('TextID');
  }
  </code></pre>