Hover Event in JQuery | Tryit Editor for Web Development
Edit This Code:
See Result »
<html> <body> <h1>Welcome To T4-Tutorials</h1> <h2>Hover Event:</h2> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("#T").hover(function(){ alert("You entered the paragraph"); }, function(){ alert("Bye! You now leave the paragraph"); }); }); </script> </head> <body> <p id="T">Thanks For Your Love For T4-Tutorials</p> </body> </html>
Result: