On my page I have toolbar which comes from Masterpage, and some input fields. All input fields are inside of tag form and toolbar outside tag form. Is it possible submit form after pressing on button outside of form tag?
Please suggest, Alexander.
You can do it with JavaScript:
<input type="button" onclick="$('#someForm').submit();" />
The disadvantage, of course, is that it breaks without JavaScript.
I don't believe you can do what you ask without JavaScript, though.
Use the OnClick-event of the button to submit the form, f.e.:
<INPUT TYPE=BUTTON OnClick="document.formname.submit();" VALUE="Submit">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With