js input submit code example
Example 1: javascript submit form
document.getElementById("myForm").submit();
Example 2: 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()">