Animates all shown paragraphs to hide slowly, completing the animation within 600 milliseconds. : hide « jQuery « JavaScript DHTML






Animates all shown paragraphs to hide slowly, completing the animation within 600 milliseconds.

 


<html>
  <head>
    <script type="text/javascript" src="js/jquery-1.3.2.js"></script>
    <script type="text/javascript">
        $(document).ready(function(){
            $("button").click(function () {
              $("p").hide("slow");
            });   
        });
    </script>

  </head>
  <body>
    <body>
          <button>Hide</button>
          <p>asdf</p>
    </body>
</html>

   
  








Related examples in the same category

1.Click to hide
2.Hide a tag
3.Hide and remove
4.Hide fast
5.Hide in millisecond