JQUERY
<html> <head> <script type="text/javascript" src="jquery.js"></script> </head> <body> <ul> <li>list item 1</li> <li>list item 2</li> <li>list item 3</li> <li>list item 4</li> <li>list item 5</li> </ul> <table> <tr style="display:none"><td>Value 1</td></tr> <tr><td>Value 2</td></tr> </table> <a>click</a> </body> <script type="text/javascript"> $(document).ready(function(){ $("li").click(function(){ $(this).hide(); }); $("a").click(function(){ //$("li:first").html("123"); //$("tr:visible").html("ha"); $("li:hidden").show(); }) }); </script> </html>
====
<html> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <script type="text/javascript" src="jquery.js"></script> </head> <body> <div id="div1">1 </div> <div id="div2">2</div> <div id="div3">3</div> <a>dianji</a> </body> <script type="text/javascript"> $(document).ready(function(){ $("a").click(function(){ $("div:first").html("wo"); }) }); </script> </html>
http://www.cnblogs.com/happyhippy/archive/2008/11/14/1333922.html
http://www.cnblogs.com/zhangziqiu/archive/2009/05/05/jQuery-Learn-4.html
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。