Using keyboard functions keyup, keydown, keypress – Jquery
Using keyboard functions keyup, keydown, keypress
Using keyup function
$("#myPara").keyup(function(){});
Using keydown function
$("#myPara").keydown(function(){});
Using keypress function
$("#myPara").keypress(function(){});
<html> <head> <title> Here is my title </title> <script src="jquery-3.6.0.min.js"> </script> <link rel="stylesheet" href="bootstrap.min.css"> </head> <body> <input id="myPara" placeholder="Nothing here in this paragraph."> <script> $(document).ready(function(){ $("#myPara").keyup(function(){ $("#myPara").hide(); }); }); </script> </body> </html>