我想提交后清除文本字段。请帮我:(提交后清除表格
<form name ="client" id="client" method="POST" action="index.php" >
<input type="hidden" name="id" id="id" >
<label>name</label>
<input type="text" name="nombre" id="nombre" value=""> <br />
<label>surname</label>
<input type="text" name="apellido" id="apellido"> <br />
<label>age</label>
<input type="text" name="fecha" id="fecha" > <br />
<label>sex</label>
<select name="peso" id="peso" > <br />
<option>male</option>
<option>female</option>
</select> <br />
<input id="submit" type="submit" name="submit" value ="submit"/>
</form>
它看起来像你的文章大多是代码;请添加更多的细节。 –
Firefox刷新页面后会记住表单内容。你可以使用javascript手动设置每个输入的值为空字符串。 – Plato