【发布时间】:2010-08-11 09:22:15
【问题描述】:
我有一个表单,如果没有提交任何内容,那么它不应该显示表格#mytable 仅当表单已提交时才应显示表格#mytable
我该怎么做?
<form action="" id="myform" method="get">
<strong>Søg på fritekst :</strong>
<input type="text" name="searchword" id="searchword" value=""/>
<input type="submit" id="show" value="Søg"/>
</form>
<table width="100%" id="mytable" class="sortable" border="0" cellpadding="2" cellspacing="2" style="border:1px solid #D4D4D4;">
<tr>
<th bgcolor="#313c95" width="100" style="color: #FFF; font-weight:bold; text-align: left;">EAK Kode:</th>
<th bgcolor="#313c95" width="350" style="color: #FFF; font-weight:bold; text-align: left;">Beskrivelse:</th>
<th style="display:none;"></th>
<th style="display:none;"></th>
<th style="display:none;"></th>
</tr>
</table>
【问题讨论】:
标签: javascript jquery html css forms