Skip to content

Commit

Permalink
Change Zip Code to Postal Code (TheOdinProject#29201)
Browse files Browse the repository at this point in the history
Per Issue TheOdinProject#29201, a form that requires Country and Zip Code does not
make sense, as ZIP codes are for United States addresses only.
Postal Code is a related term that is understood and applicable in
many countries.
TheOdinProject#29201
  • Loading branch information
McKathlin committed Jan 10, 2025
1 parent 2262c48 commit 7e95128
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Go back to your 'Library' project and add validation to that form! Don't let you

#### A little more practice

Build a browser form which collects Email, Country, Zip Code, Password and Password Confirmation fields. It should use live inline validation to inform the user whether a field is properly filled in or not. That means highlighting a field red and providing a helpful error message until it has been filled in properly.
Build a browser form which collects Email, Country, Postal Code, Password and Password Confirmation fields. It should use live inline validation to inform the user whether a field is properly filled in or not. That means highlighting a field red and providing a helpful error message until it has been filled in properly.

The form doesn't need to actually submit, but you should give an error message if the button is pushed with any active errors or unfilled required fields. For the sake of this lesson, make sure the `<form>` element has the [`novalidate` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#novalidate) which will allow you to do **all** of your validation in your JavaScript files. You can still use different `<input>` types, but you will need to use JavaScript to check and report their validity. If all is well and the form is "submitted", give the user a high five.

Expand Down

0 comments on commit 7e95128

Please sign in to comment.