One fields and multiple submit button in form HTML
On input fields and multiple submit button with different action button different method you can use in only on HTML form tag.
I have to show 2 fields name is used for username and id. And first button can i action is Google, When users click first button they will brows of google site like google.com/username=your input fields name and id. Second button are same. Here you follow full example for better understand.
This form look like:
<form action="https://www.google.com" method="get">
<input type="text" name="id" value="id" />
<input type="text" name="username" value="your_username" />
<button type="submit">Google</button>
<button type="submit" formaction="https://www.facebook.com" formmethod="get">Facebook</button>
<button type="submit" formaction="https://www.twitter.com" formmethod="get">Twitter</button>
<button type="submit" formaction="https://www.linkedin.com/feed/" formmethod="get">Linkedin</button>
</form>
If you find more please follow this link Stackoverflow.
One fields and multiple submit button in form html
Reviewed by TechTubeHQ
on
September 07, 2022
Rating:

No comments: