Hiding all

elements ($("p").hide())


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
       <head>
              <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
              <title>Testing</title>
              <script type="text/javascript" src="lib/jquery/jquery-1.3.2.js"></script>
              <script type="text/javascript">
                     $(document).ready(function(){
                           $("button").click(function(){
                                  $("p").hide();
                           });
                     });
              </script>
       </head>
       <body>
              <p>This is a heading</p>
              <p id="test">This is a paragraph</p>
              <button>Hide Me</button>
       </body>
</html>

Comments

Popular posts from this blog

371 - Ackermann Functions

Create many folder with one click