title: Get the value in an input text box
body: <p>What are the ways to get and render an input value using jQuery?</p>
  
  <p>Here is one: </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function() {
    $("#txt_name").keyup(function() {
      alert($(this).val());
    });
  })</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.4.3/jquery.min.js"&gt;&lt;/script&gt;
  &lt;input type="text" id="txt_name" /&gt;</code></pre>
  </div>
  </div>
  </p>