jsp的table的显示和隐藏 jsp的table的显示和隐藏

jsp的table的显示和隐藏

<script>

function show(){

 var myTable= document.getElementById("myTable"); myTable.style.display="block";

}

function hidden(){

var myTable= document.getElementById('myTable); myTable.style.display ="none";

}

</script>

<input type="button" name="button" value="显示" onclick="show()">

<input type="button" name="button" value="隐藏" onclick="hidden()">

<table width="200"  id="myTable" border="0" align="center" cellpadding="1" cellspacing="0" style="display: none">

扫描二维码关注公众号,回复: 5028705 查看本文章

 <tr><td height="60" align="center" class="hong12">显示table信息</td></tr>

 </table>

猜你喜欢

转载自blog.csdn.net/qq_36457575/article/details/80735622