For this discussion, select two of the following potential form fields and write the JavaScript you would use to validate or make the data entry easier for the visitor:

  • U.S. phone number.
  • Zip + 4.
  • Social Security Number.
  • A section that asks for the following:
    • First Name.
    • Last Name.
    • Street Address.
    • City.
    • State.
    • Zip Code.
  • Ordering a sweater that comes in any of the following colors:
    • Black.
    • White.
    • Gray.
    • Blue.
    • Red.