jQuery隐藏按钮

jQuery隐藏按钮
<html>
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>jQuery隐藏按钮</title>
  <script type="text/javascript" src="jQuery/jquery-1.6.2.min.js"></script>
  <script type="text/javascript">
   $(document).ready(function()
   {
    $(document.getElementById("fisrt")).click(function()
    {
     $(document.getElementById("fisrt")).hide();
    });
    $(document.getElementById("second")).click(function()
    {
     $(document.getElementById("second")).hide();
    }
    );
   });
  </script>
  <link rel="sheetstyle" type="text/css" href="" />
 </head>
 <body>
  <button type="button" id="fisrt">我消失!</button>
  <button id="second">我隐藏!</button>
 </body>
</html>

 

posted @ 2013-03-13 23:40  findumars  Views(28607)  Comments(0Edit  收藏  举报