Skip to content

Submit the form with a button outside the form #4293

Answered by sadeghbarati
anardil asked this question in Q&A
Discussion options

You must be logged in to vote

You can use form attribute on the button (which is outside of the form)

like

<form id="uniqueFormId">
    ...
</form>

<button form="uniqueFormId">submit</button>

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@Niehaus
Comment options

@sadeghbarati
Comment options

@larrasu
Comment options

@Niehaus
Comment options

Answer selected by logaretm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants