jQuery日本語リファレンス

jQuery does not mean Japanese Query...

Effects/API/jQuery - Sample Code

hide()


            
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
                    "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <script src="/jquery/js/jquery.js"></script>
  
  <script>
  $(document).ready(function(){
    
    $("p").hide();
    $("a").click(function () {
      $(this).hide();
      return false;
    });

  });
  </script>
  
</head>
<body>
  <p>Hello</p>
  <a href="#">Click to hide me too</a>

  <p>Here is another paragraph</p>
</body>
</html>
            
          
[実行結果]
[hide() の説明へ]