1<form action="/action.php">
2 <label for="fname">First name:</label><br>
3 <input type="text" id="fname" value="Mike"><br><br>
4 <label for="lname">Last name:</label><br>
5 <input type="text" id="lname" value="Walker"><br><br>
6 <input type="submit" value="Submit">
7</form>
1<!-- put this line of code inside of your input -->
2 onchange="this.form.submit()
3
4<!-- EXAMPLE -->
5
6 <input type="checkbox" onchange="this.form.submit()">
7