tryjsref_form_reset 在线代码实例
<p>Enter some text in the fields below, then press the "Reset form" button to reset the form.</p>
<form id="frm1">
First name: <input type="text" name="fname"><br>
Last name: <input type="text" name="lname"><br><br>
<input type="button" onclick="formReset()" value="Reset form">
</form>