title: jQuery get input value on button click
body: <p>How to make input value showing every input on button click without deleting the previous input ? </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(){
    $("#btn").click(function(){
      var getVal = $("#inputValue").val();
      $("p").html(getVal);
    });
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div id="main"&gt;
    &lt;fieldset&gt;
      &lt;legend&gt;jQuery input value&lt;/legend&gt;
      &lt;input id="inputValue" type="text" name="text"&gt;
    &lt;/fieldset&gt;
    &lt;button id="btn"&gt;display value&lt;/button&gt;
    &lt;p&gt;&lt;/p&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>