HTML Editor
<!DOCTYPE html> <html lang="en-US"> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> </head> <body> <h1>jQuery keydown() Method</h1> <input type="text" placeholder="type something"> <script> $(document).ready(function(){ $("input").keydown(function(){ alert("Key is down"); }); }); </script> </body> </html>
OUTPUT
×

Save as Private