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">

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

 table>

你可能感兴趣的:(JSP)