Widthout Call back-Function in HTML and jQuery | Tryit Editor for Web Development
Edit This Code:
See Result »
<html> <body> <h1>Welcome To T4-Tutorials</h1> <h2>Widthout Call back-Function:</h2> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("button").click(function(){ $("p").hide(1500); alert("The paragraph is now hidden"); }); }); </script> </head> <body> <button>Hide The Paragraph</button> <p>Thanks For Your Love For T4-Tutorials.</p> </body> </html>
Result: