Questions

  1. How do you stop a form submittal if the form data is incomplete or invalid?

  2. What event(s) do you want to capture on text-input fields to do JiT validation?

  3. Given a selection list, how would you add options based on user input?

  4. How do you ensure a name field has only characters and whitespace?

  5. Create the JavaScript that captures an event when a radio button is checked and then disables a text-input field if one button is clicked, and enables it if another is clicked.

Answers are provided in the appendix.

Get Learning JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.