0
我有一个包含在主页面中的JSP页面。在JSP页面中,当用户使用Jquery单击它时,我给出了一个要提交的HTMLform?html表单在我的jsp页面中无法识别
<form id="orderBean1" name="myForm" action="/Auto/Item" method="post">
<input id="filename" name="filename" value="" />
</form>
首先,
令人惊奇的是,这种形式是不是在页面内的认可..
当我在我的控制台给$(“#orderBean1”),它并没有给窗体对象,而$('#filename')给我的文件名输入元素。
其次, 由于形式不认可它不会提交...
$("#vehreport").click(function(e) {
e.preventDefault();(I have given this stmt even after the submit() and still not working...
$("#orderBean1").submit();
alert("formsubmnittted");
})
问题 - 为什么不表单元素在我的网页识别?
Thanks..The问题是elsewhere..I有一个表单内的形式,那就是这个问题。 .. – user1050619 2014-11-08 17:47:18