Editor Arrow Download Open
<!DOCTYPE html> <html> <head> <title>jQuery event.which property</title> <script src="jquery-latest.min.js"></script> <script> $(document).ready(function(){ $("input").keydown(function(event){ $("span").text("Pressed Key: " + event.which); }); }); </script> </head> <body> <p>Press any keyboard key on below input</p> <input type="text" name="keyboard"> <br /><br /> <span></span> </body> </html>
  Preview Arrow