Answers for "add a button to submit form html outside form"

9

how to submit a form with submit button outside form

<div>
  <form id="my-form">
    <label for="name">Name:</label>
    <input type="text" name="name"></input>
  </form>

  <!-- ... -->

  <button type="submit" form="my-form">Submit</button>
</div>
Posted by: Guest on February-26-2020

Code answers related to "add a button to submit form html outside form"

Browse Popular Code Answers by Language