title: jquery edit comments
body: <p>Can you explain  the methods to make a jquery edit system where I click on a click and then it show a textarea and a edit bottom.</p>
  
  <p>What is the best methods to do it? </p>
  
  <p>Right now I have this:</p>
  
  <pre><code>&lt;div id="frame"&gt;
  &lt;div id="data"&gt;bla bla bla&lt;/div&gt;
  
  &lt;a class='edit' href=''&gt;edit&lt;/a&gt;
  &lt;/div&gt;
  
  &lt;script&gt;
  $(function() {
      $('#frame a').click(function()
      {
          var data = $('#data').text();
  
          alert(data);
          console.log('press edit');
      })
  })
  &lt;/script&gt;
  </code></pre>