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>
原文地址:https://www.cnblogs.com/findumars/p/2958603.html