javascript - html Form not recognized in my jsp page -
javascript - html Form not recognized in my jsp page -
i have jsp page included in main page..within jsp page, have given htmlform want submit() 1 time user clicks using jquery?
<form id="orderbean1" name="myform" action="/auto/item" method="post"> <input id="filename" name="filename" value="" /> </form>
first,
suprisingly, form not recognized within page..
when give $('#orderbean1') in console not give form object whereas $('#filename') gives me filename input element.
second , form not recognized not submitted...
$("#vehreport").click(function(e) { e.preventdefault();(i have given stmt after submit() , still not working... $("#orderbean1").submit(); alert("formsubmnittted"); })
question - why doesn't form element recognized in page?
i set jsbin here.
as can see, #orderbean1
recognized, , submits.
the error elsewhere js or markup, though if i'm misunderstanding question please clarify
javascript jquery html forms jsp
Comments
Post a Comment