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>

Tony BB
 

TonyBB is a Coach , marketer, hypnotist and a founder of RSKVF Production who specializes in providing simple, affordable, and easy to use solutions for Life.

Click Here to Leave a Comment Below 0 comments

Leave a Reply: