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>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM