1
2 <form action="/action_page.php">
3 <label for="fname">First
4 name:</label><br>
5 <input type="text" id="fname" name="fname"
6 value="John"><br>
7 <label for="lname">Last name:</label><br>
8
9 <input type="text" id="lname" name="lname" value="Doe"><br><br>
10
11 <input type="submit" value="Submit">
12</form>
13
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