Put in order · JavaScript and TypeScript course · Module 8: Events and the DOM

Form Event Handling Phases

Arrange the order of form submit event handling:

Items to put in order

  • Capture the submit event
  • Send data via fetch/AJAX
  • preventDefault() - prevent the default action
  • Validate form data

You can check the correct answer by solving this task in the CodeWorlds game.