如何调用表单['myform'].submit with input with name'提交&
How to call forms['myform'].submit with input with name 'submit' exists
我有一个包含输入元素的表单
<form name='myform'>
<input name='submit'>
</form>
如何调用forms['myform'].submit()
?forms['myform'].submit
指的是输入元素而不是函数。
从另一个表单中窃取提交方法
document.createElement('form').submit.apply(document.forms.myform);
此在IE6中不起作用。更改提交按钮的名称是更安全、更可靠、更简单的选项。
相关文章:
- Fighting with FRP
- issue with FB.Event.subscribe
- geolocation-marker.js conflict with markerclusterer.js
- Angular 2.0 with JavaScript or TypeScript?
- 为什么不推荐使用“with”?是否有更好或其他方法可以“下降”到对象的命名空间
- WebComponentsJS with IE10
- 指令的模板必须只有一个根元素:With restrict E&替换true
- timeago.js with datatable and PHP
- Ajax and Json with Rails
- errors with Javascript try catch
- how to split a string with ','
- Understanding Javascript scope with "var that = this&qu
- jQuery submit()的角度等效项
- Architecture for CPU intensive tasks with NodeJS & Socke
- How to declare a Map containing certain properties with flow
- Javascript form.submit()方法是如何工作的
- 设置'这'在React with Inverse Data Flow中
- 如何调用表单['myform'].submit with input with name'提交&
- javascript:document.forms[0].submit() does not work with IE1
- Angular Form Submit built with ng-repeat