Click to hide : hide « jQuery « JavaScript DHTML






Click to hide

    

<html>
  <head>
    <script type="text/javascript" src="js/jquery-1.3.2.js"></script>
    <script type="text/javascript">
        $(document).ready(function(){


                $("p").click(function () {
                  $(this).hide();
                  return true;
                });





        });
    </script>
  </head>
  <body>
    <body>
        <p>Hello</p>
    </body>
</html>

   
    
    
    
  








Related examples in the same category

1.Hide a tag
2.Hide and remove
3.Hide fast
4.Hide in millisecond
5.Animates all shown paragraphs to hide slowly, completing the animation within 600 milliseconds.