title: Can't print value in jQuery
body: <p>I'm using jQuery. I created a variable and I stored the value in it, but I couldn't print it using <code>.html()</code>.</p>
  
  <p><strong>Code</strong></p>
  
  <pre><code>var msg = $("#msg");
  var msgvl = msg.val();
  var btn = $("#btn");
  
  $(document).ready(function(){
    $(btn).click(function(){
      $("#reply").html(msgvl);
    });
  });
  </code></pre>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;input type="text" id="msg"&gt;
  &lt;button id="btn"&gt;Send!&lt;/button&gt;
  &lt;p id="reply"&gt;&lt;/p&gt;
  </code></pre>