Nodette saysRead and control form fields through value, checked, and the form’s elements.
Get text inputs with input.value, checkboxes/radios with input.checked, and selects with select.value. form.elements (or new FormData(form)) gathers everything at once. Listen for input (every keystroke) or change (on commit), and call e.preventDefault() on submit to handle it in JS.
Power-ups you unlock
input.value · checkbox.checked · select.value
FormData(form) collects all fields
input event = live; change = on commit
preventDefault() to handle submit in JS
The Event Bubbler attacks — common mistakes
Reading .value on a checkbox instead of .checked
Forgetting preventDefault (page reloads)
Querying fields one-by-one instead of FormData
Boss battleCapture a form submit, read the input value, and show it without reloading.