jQuery Forms
Examplehtml
e.preventDefault() stops the browser from reloading the page. .is(":checked") tests a checkbox, and the input event fires on every keystroke.
Quick check
What does e.preventDefault() do in a submit handler?
Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.
Tip: use the left and right arrow keys to move between lessons.