Hiding Paragraph On Click In Jquery

  1. <!DOCTYPE html>  
  2. <html>  
  3. <head>  
  4. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>  
  5. <script>  
  6. $(document).ready(function(){  
  7.     $("p").click(function(){  
  8.         $(this).hide();  
  9.     });  
  10. });  
  11. </script>  
  12. </head>  
  13. <body>  
  14.   
  15. <p>c# corner</p>  
  16. <p>community for developer</p>  
  17. <p>c-sharpcorner.com</p>  
  18.   
  19. </body>  
  20. </html>