Last active
May 27, 2022 18:57
-
-
Save lewiswalsh/3ee4a53239a624293123f9f396e4259a to your computer and use it in GitHub Desktop.
Submit a form with a button outside the form #html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form id="my-form"> | |
<label for="name">Name:</label> | |
<input type="text" name="name"></input> | |
</form> | |
<button type="submit" form="my-form">Submit</button> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment