Javascript examples for jQuery Method and Property:keyup
JQuery keyup and display keyCode
<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>