title: jquery preventDefault() is not working sometimes in chrome
body: <p>I am trying to prevent the default behavior of the enter key through <code>preventDefault()</code> but it is not working.Here is my code</p>
  
  <pre><code>$(document).ready(function(){
   $("#Last").keydown(function(event){
       if (event.keyCode==13) {
        event.preventDefault();
        alert("Enter Pressed");
        }});
  
   $("#ffff").click(function(event){
          event.preventDefault();
          alert("Submit Button Clicked");
           });
  });
  </code></pre>
  
  <p>and here is the html part </p>
  
  <pre><code>&lt;form action="http://www.google.co.in"&gt;
  First name: &lt;input type="text" name="FirstName" value="Al"&gt;&lt;br&gt;
  Last name: &lt;input type="text" id="Last" name="LastName" value="McCoy"&gt;&lt;br&gt;
  &lt;input type="button" value=" Next " id="validate"&gt;
  &lt;input id="ffff" type="submit" value="Submit"&gt;
  &lt;/form&gt; 
  </code></pre>
  
  <p>So according to the code above it should only alert <code>Enter Pressed</code> if I press enter key on Last Name field, but it alerts both.Is there anything in the code wrong? Here is the link for the details <a href="http://js.do/code/76957" rel="nofollow">Js.do</a> </p>