Skip to content
Advertisement

How come my simple checkbox form is not completing its action upon submitting

Its a simple form with a action that should go to the “nextPage.html”. it only has 1 input which is a checkbox and a submit button.

JavaScript
JavaScript

Advertisement

Answer

e.currentTarget.submit(); will “manually” submit the form after you’ve verified that the checkbox is checked. Also side-note, it is always recommended to include semicolon line terminations.

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement