<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>
新聞熱點
疑難解答