html 设标签不可见

来源:互联网 发布:淘宝助理图片 编辑:程序博客网 时间:2024/06/10 03:46

<script type="text/javascript">

document.getElementById("changetr").style.display="none" ;//设置下面的table不可见

document.getElementById("changetr").style.display="block"; //设置下面的table 为可见

</script>

<div id="changetr" style="display:none">

<table border="0" id="table2">
<tr>
  <td>标题:<input type="text" id="biaoti"  disabled="true" value="java"/>摘要:<input type="text"

id="zhaiyao" /></td>

</tr>
<tr>
  <td>作者:<input type="text" id="author" />类型:
 
   <select name="domain" id="leixing"><option value="zhengquan" selected >证券</option><option

value="tech">科学</option><option value="it">IT</option>
   </select>
  </td>


</tr>

<tr>
  <td align="center"><input id="ok" type="button" value="提交" onclick="updateOk()" /><input id="cancel"

type="button" value="重置" onclick="cancel()" /></td>

</tr>

</table>

</div>

原创粉丝点击