我正在使用以下JavaScript提交表单,但它未提交。未提交HTML表单的Java脚本
if(timeup)
{
alert("welcome to time up.");
var id = document.getElementById("test_id").value;
var no = document.getElementById("noq").value;
var action = 'result.php?id='+id+'&no='+no+'';
exercisenew.action = action;
alert("form"+exercisenew.action);
exercisenew.submit();
alert("form submitted.");
}
完整代码here。
Html表单。
<form method="post" action="" id="exercisenew" name="exercisenew">
的东西,你定义exercisenew? – 2013-02-13 06:02:13
你的表单中没有任何内容,它会在哪里提交? – 2013-02-13 06:07:52