Section 7.6. Questions


7.6. 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.




Learning JavaScript
Learning JavaScript, 2nd Edition
ISBN: 0596521871
EAN: 2147483647
Year: 2006
Pages: 151

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net