相关疑难解决方法(0)

为什么form.submit()不起作用?

我在页面中有以下snipet.我不能为我的生活找出为什么单击button1元素时表单没有提交.我在IE syaing中收到一个错误,即此对象不支持此属性或方法.我将document.poform放入警报中,并警告表单对象.我觉得我错过了一些非常明显的东西?

<pre>
<?
    var_dump($_POST);
?>
</pre>
<form action="" method="post" name="poform">
    <input name="test" type="text" />
    <input name="button" type="button" value="button1" onclick="document.poform.submit();" />
    <input name="submit" type="submit" value="button2" />
</form>
Run Code Online (Sandbox Code Playgroud)

html javascript

3
推荐指数
1
解决办法
330
查看次数

标签 统计

html ×1

javascript ×1