原文出处:https://www.cnblogs.com/shadada/p/9116455.html

1 <form action="test.jsp" method="post" >
2 
3   名字:<input type="text" name="stu_n"/>
4 
5 </form>
6 <a href="#" onclick="document.getelementbyid('myform').submit();return false;">提交</a>

 具体思路:用a标签的onclick事件  获取表单的id  执行form表单的提交操作,也就是执行submit事件。

相关文章:

  • 2022-12-23
  • 2021-05-09
  • 2022-12-23
  • 2022-03-04
  • 2022-12-23
  • 2021-06-01
  • 2021-11-15
  • 2022-12-23
猜你喜欢
  • 2022-01-08
  • 2021-07-09
  • 2022-12-23
  • 2021-10-06
  • 2021-06-16
  • 2021-08-08
  • 2022-12-23
相关资源
相似解决方案