例如原 html 上的 form 為
代碼: 選擇全部
<form id="myform" method="post" action="test.php">
name:<input type="name" value="John">
age:<input type="age" value="25">
<input type=submit value="送出"><input type=reset value="重新輸入">
</form>
代碼: 選擇全部
....
$.("#myform")[0].reset();
....