我正在为学校开展一个项目,我一直坚持如何重置页面上的所有文本框。这就是我的重置按钮的样子:
<form name="Reset">
<input type="button" value="New ordering sheet." onClick="Reset()">
</form>
我不知道该怎么做这个函数,我没有Reset()函数的代码:
function Reset() {}
答案 0 :(得分:0)
看一下以下问题,有几种方法可以实现:
How to clear all textboxs in a DIV using jQuery?
JQuery how to clear all the input:textfields of a .class on a form. Not working for me
答案 1 :(得分:0)
我认为这可以帮助!!只需在表单中输入“重置”: - )
<form name="myform" action="http://something" method="POST">
<input type="text" size="25" value="Enter your name here!">
<input type="submit" value="Send me your name!">
<input type="reset" value="Reset!">
</form>