JQuery keyup and display keyCode - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:keyup

Description

JQuery keyup and display keyCode

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://code.jquery.com/jquery-1.4.2.js"></script> 
      <script type="text/javascript">
    $(window).load(function(){// w  ww .j  ava  2 s  .c  o  m
$(function() {
    $('#test').keyup(function(e) {
        $('body').append('' + e.keyCode + '');
    })
});
    });

      </script> 
   </head> 
   <body> 
      <input id="test" value="" autocomplete="off">  
   </body>
</html>

Related Tutorials