title: Enter in input field focus nearest button in IE9
body: <p>I have a input field and a button in the code below.</p>
  
  <p>I have write some javascript code to catch the keyup and show a alert if its the Enter key.</p>
  
  <p>This work fine in Firefox, but in IE9 will a enter click in the input field resulted in that the button becomes focused and the keyUp trigger in javascript will not be fired.</p>
  
  <p>Anyone have suggestions for solution?</p>
  
  <p>jsfiddle:
  <a href="http://jsfiddle.net/c46khq2x/1/" rel="nofollow">http://jsfiddle.net/c46khq2x/1/</a></p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;input type="text" class="js-field-click"/&gt;
  
  &lt;button class="js-button-click"&gt;Button&lt;/button&gt;
  </code></pre>
  
  <p>javascript ( JQuery ):</p>
  
  <pre><code> $( document ).ready(function() {
  
  
        $(".js-field-click" ).keyup(function(e) {
           var val = $(this).val();
           var code = e.which;
  
           if(code==13){
              alert("field enter");
           }
        });
  
       $(".js-button-click").click( function() {
              alert("button click");
       });
   });
  </code></pre>