on submit check if checkbox is checked code example Example: submit form when checkbox is checked onChange="this.form.submit()"