TIL: Form attribute
Published on
You can submit forms from a button outside of the form tag by using the form attribute (source and discussion)
Can be useful for example in a reset or submit form button, that is placed somewhere outside due to design demands.
🔥 You can submit forms from a button outside of the form tag by using the form attribute pic.twitter.com/72pjoWu5Ll
— $MIGUEL Piedrafita 🥬 (@m1guelpf) November 22, 2020
Supported - everywhere except IE11