mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 21:34:03 +00:00
13 lines
No EOL
660 B
Markdown
13 lines
No EOL
660 B
Markdown
---
|
|
title: 'You can use the form="another-form" attribute on buttons to submit a different form'
|
|
tweet_id: '1461703831960440837'
|
|
thread_slug: weekly-thread-2021-46
|
|
author_username: doekenorg
|
|
images:
|
|
- 'https://pbs.twimg.com/media/FEZQ4UOXEAo2mlv.jpg'
|
|
created_at: 2021-11-19T14:32:05+00:00
|
|
slug: you-can-use-the-formanother-form-attribute-on-buttons-to-submit-a-different-form
|
|
---
|
|
🔥 I sometimes forget you can use `form="form-name"` on input types to hook fields inside one form to another. This makes it as if those fields were inside that <form>-tag.
|
|
|
|
This is super useful if the fields are rendered in the wrong form, but UI wise it makes sense. |