I have a form with checkboxes. I don’t want the submit button to be placed near the checkboxes but at the bottom of the page, with lots of content in between. Is there a way to to this? So I guess what I need is 2 forms, one submitting the other one.
Share
In HTML5 you can use
form="id-of-a-form"in a<input>element to make it belong to that form even without being a child element of the form. Of course this won’t work in old browser so you might want to add some JavaScript to shim this behaviour in those browsers.Depending on what you want to do you could also simply keep the form tag open the whole time, i.e. basically wrap most of your body in the form. This only works if it does not result in nested forms!