Hide content using jQuery - Jquery

hide

Snippet Code


  
Rate this page :
  [ 0 votes]

In jQuery the contents can be hide using $(this).hide() function.

<html> <head> <script src="http://www.hscripts.com/tutorials/jquery/jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("p").click(function(){ $(this).hide(); }); }); </script> </head> <body> <p>Click here to hide content</p> </body> </html>

Tags


Ask Questions

Ask Question