Posted in Javascript onFebruary 08, 2014
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>jquery</title> <script type="text/javascript" src="jquery-1[1].3.2.min.js"></script> <style type="text/css"> .big{ font-size:30px; color:#FF0000;} </style> <script type="text/javascript"> $(function(){ $('#click_event').click(function(){ $('#click_event').html(''); if($('#hidden_enent').is(':hidden')) { $('#hidden_enent').show(); $('#click_event').html('隐藏'); } else { $('#hidden_enent').hide(); $('#click_event').html('显示'); } }) }) </script> </head> <body> <div id="click_event" style="cursor:pointer">隐藏</div> <div id="hidden_enent">测试隐藏</div> </body> </html>
Jquery实现控件的隐藏和显示实例
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@