return an error massage if checkbox is not checked before submit code example Example: submit form when checkbox is checked <input onChange="this.form.submit()" ... />