Exercise Wednesday

Address book

Follow along with the Address Book lessons to add Address objects and support for multiple addresses. Complete these items for it too:

  • Add address type to the addresses entered
  • Hide any additional address fields when the form is submitted. (One way to do this would be to use the .not() function.)

If you wish, work on these too:

  • Refactor some of the other sections of the jQuery into functions as we did with resetFields()
  • Try a jQuery method from either the CSS or Effects options in the documentation (e.g. fadeIn() or .css())
  • Try a jQuery method from the Events options (e.g. hover() or .keypress())