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