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

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -