title: How to get value and remove text box jQuery
body: <p>I created a text box and appended it to my div:</p>
  
  <pre><code>    $('&lt;input /&gt;').appendTo("#box")
  </code></pre>
  
  <p>I would like to get the value inputted from the user.</p>
  
  <p>I would also like to remove the text box too. I tried this:</p>
  
  <pre><code>    $('&lt;input /&gt;').remove();
  </code></pre>
  
  <p>but no luck. Any ideas? Thanks a lot. </p>