js点击重置按钮重置表单

<html>
<head>
<script type="text/javascript">
function formReset()
{
document.getElementById("myForm").reset()
}
</script>
</head>

<body>
<p>在下面的文本框中输入一些文本,然后点击重置按钮就可以重置表单。</p>

<form >
</form>
</body>
</html>

地址连接:http://www.w3school.com.cn/tiy/t.asp?f=hdom_form_reset

相关文章:

  • 2021-12-22
  • 2021-06-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
  • 2021-12-06
  • 2022-12-23
猜你喜欢
  • 2021-08-12
  • 2021-12-06
  • 2021-12-06
  • 2021-12-06
  • 2021-09-08
  • 2021-06-17
  • 2021-12-27
相关资源
相似解决方案