TIL you can wire different inputs to different forms
POSTED ON:
Typically, you create a input element INSIDE your form element.
But what if you have a input field that lives OUTSIDE of that form wrapper?
<form id="myForm" action="/form.php">
<input id="name">
<button type="submit">
</form>
<input type="email" form="myForm">
I can see this being super useful for search boxes.
Via Those HTML Attributes You Never Use via Louis Lazaris
Related TILs
Tagged: input