title: JavaScript hide/show element
body: <p>How could I hide the 'Edit'-link after I press it? and also can I hide the "lorem ipsum" text when I press edit?</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;script type="text/javascript"&gt;
  function showStuff(id) {
    document.getElementById(id).style.display = 'block';
  }
  &lt;/script&gt;
  
  
  &lt;td class="post"&gt;
  
    &lt;a href="#" onclick="showStuff('answer1'); return false;"&gt;Edit&lt;/a&gt;
    &lt;span id="answer1" style="display: none;"&gt;
      &lt;textarea rows="10" cols="115"&gt;&lt;/textarea&gt;
    &lt;/span&gt;
  
    Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum 
  &lt;/td&gt;
  </code></pre>