title: JS variable returning object not value
body: <p>I'm setting a global variable via jQuery as such:</p>
  
  <pre><code>user = $("#user").val();
  </code></pre>
  
  <p>Specifically without <code>var</code> so that it can be pulled outside of <code>function</code>.</p>
  
  <p>When I try to pull that variable later all I get is <code>[object HTMLInputElement]</code>.</p>
  
  <p>Here is the code I'm using to pull that variable,</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
        document.getElementById("user-login-info").innerHTML = "Hello, "+user;
  &lt;/script&gt;
  </code></pre>
  
  <p>What am I doing wrong here?</p>