title: validate with keypress enter
body: <p>i have a problem. I will validation my Testsite. 
  So i have 4 input field to which i want to check.</p>
  
  <p>My check work but i write all 4 inputs i get a alert error that is not what i want, because i need the form action link.</p>
  
  <p>Here my Code:</p>
  
  <pre><code>var pin1 = jQuery('#pin1').val();
      var pin2 = jQuery('#pin2').val();
      var pin3 = jQuery('#pin3').val();
      var pin4 = jQuery('#pin4').val();
  
      var pin = pin1 + pin2 + pin3 + pin4;
  
     $("input").keypress(function(event) {
          if (event.which == 13) {
  
              event.preventDefault();
  
             if(pin == ""){
                  alert("Bitte füllen Sie alle Inputfelder aus");
              }else{
                  $("form").submit();
              }
  
  
  
          }
      });
  </code></pre>
  
  <p>And here my Testsite: <a href="http://devauth.labscope.de/htmlapp/login.html?email=HTML5_APP_dmarkstaedter@iscope.de" rel="nofollow">http://devauth.labscope.de/htmlapp/login.html?email=HTML5_APP_dmarkstaedter@iscope.de</a></p>