Question: JavaScript Short Answer 22 Create a function to validate a password entered by a user in a password box with id = pword that must

JavaScript

Short Answer

22 Create a function to validate a password entered by a user in a password box with id = "pword" that must contain exactly eight characters and must begin with a digit.

28 Create a function that will verify that a user enters a five-digit zip code into a textbox which has id = "zip".

30 Create a function that will verify the users entry of his city, state, and zip code. The entry should be of the format:

MyCity, 2-character_code_for_state 5-digit_zip_code

The address is entered in a textbox with id = "address".

The function should verify the following:

The city name is followed by a comma.

The state is two characters and both are uppercase.

The zip code consists of five digits.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!