Answers for "make a "submit" button?"

55

html form

<form action="/action.php">
  <label for="fname">First name:</label><br>
  <input type="text" id="fname" value="Mike"><br><br>
  <label for="lname">Last name:</label><br>
  <input type="text" id="lname" value="Walker"><br><br>
  <input type="submit" value="Submit">
</form>
Posted by: Guest on March-26-2020
0

add submit to input

<!-- put this line of code inside of your input -->
 onchange="this.form.submit()

<!-- EXAMPLE -->

      <input type="checkbox" onchange="this.form.submit()">
Posted by: Guest on July-26-2020

Browse Popular Code Answers by Language