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>
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did48431