title: HTML and JQuery check if username and password are correct?
body: <p>I am trying to create a basic session log (without using PHP) that checks if both the username and password are correct. It has worked with only the password, but I can't make it check the username, The code is as follows:</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() {
    $('#psword').keypress(function(e) {
      if (e.keyCode == 13 &amp;&amp; this.value == "abcd" &amp;&amp; ("#uname").value == "1234") {
        $(".login").fadeOut("fast", function() {});
      }
    });
  });</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;input class="login" id="uname" type="text" placeholder="Username" required&gt;
  &lt;input class="login" id="psword" type="text" placeholder="Password" required&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>It works up until I add the ("#uname").value part. How must I change it?</p>