Hide paragraph firing double click – jquery
Hide paragraph firing double click – jquery
Using double click in jquery
$(".myPara").dblclick(function(){});
Using hide in Jquery
$(".myPara").hide();
Using show instead of hide in Jquery
$(".myPara").show();
<html> <head> <title> Here is my title </title> <script src="https://code.jquery.com/jquery-3.6.0.js" integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk=" crossorigin="anonymous"></script> <script src="jquery-3.6.0.min.js"> </script> <link rel="stylesheet" href="bootstrap.min.css"> </head> <body> <p class="myPara"> Here is my paragraph </p> <script> $(document).ready(function(){ $(".myPara").dblclick(function(){ $(".myPara").hide(); }); }); </script> </body> </html>