<!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 show() Method</h1>
<p>show() method with duration</p>
<button id="myHide">Hide</button>
<button id="myShow">Show</button>
<script>
$(document).ready(function(){
$("#myHide").click(function(){
$("p").hide();
});
$("#myShow").click(function(){
$("p").show(2000);
});
});
</script> </body>
</html>