You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Is it possible to submit the input fields from an html element other than form?
Say, I have a div#id with several input fields and a button/anchor, when I click the button, the fields inside the div are submitted to server (get/post/etc).
This way I can have multiple divs submitted to different endpoints.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
Is it possible to submit the input fields from an html element other than form?
Say, I have a div#id with several input fields and a button/anchor, when I click the button, the fields inside the div are submitted to server (get/post/etc).
This way I can have multiple divs submitted to different endpoints.
Currently, when I click on either button, all fields are submitted, because they are part of the form.
Beta Was this translation helpful? Give feedback.
All reactions