hwaggLee

 

(需要注意:做这个reset和submit时页面不能有这两个id和名称)

<form id="form1" name="formName" action=""></form>

 

一.通过form的id

document.getElementByIdx_x("form1").reset();

 

二.通过form的name

document.formName.reset();

 

分类:

技术点:

相关文章:

  • 2021-12-06
  • 2021-08-21
  • 2022-01-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2021-12-31
猜你喜欢
  • 2021-12-06
  • 2021-12-06
  • 2022-12-23
  • 2021-12-06
  • 2022-03-05
  • 2022-12-23
相关资源
相似解决方案