Completed Project 6-1 Do the following: 1. Use your code editor to open the project06- 01_txt.html...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Completed Project 6-1 Do the following: 1. Use your code editor to open the project06- 01_txt.html and project06-01_txt.js files from the js06 project01 folder. Enter your name and the date in the comment section of each file and save them as project06- 01.html and project06-01.js, respectively. 2. Go to the project06-01.html file in your code editor and link the page to the project06-01.js file, deferring the script from loading until after the page loads. Take some time to study the sign-up form. Note that the pwd field contains a regular expression pattern that will be used to verify that the password is in the proper format. Save your changes to the file. 3. Go to the project06-01.js file in your code editor. Below the comment section declare the following variables: submitButton referencing the element with the id "submitButton", pwd referencing the element with the id "pwd", and pwd2 referencing the element with the id "pwd2". 4. Create an event listener for the click event occurring with the submitButton that runs an anonymous function. 5. Within the anonymous function add the following if else structure: 1. If the pwd field fails the pattern match, display the validation message "Your password must be at least 8 characters with at least one letter and one number". 2. Else if the value of the pwd field does not equal the value of the pwd2 display the validation message "Your passwords must match". 3. Otherwise, set the validation message to an empty text string. 6. Save your changes to the file and then open project06-01.html in your web browser. 7. Verify that you cannot submit the form if your password is less than eight characters long and does not include at least one number and one letter. 8. Verify that you cannot submit the form if the two passwords do not match. Completed Project 6-1 Do the following: 1. Use your code editor to open the project06- 01_txt.html and project06-01_txt.js files from the js06 project01 folder. Enter your name and the date in the comment section of each file and save them as project06- 01.html and project06-01.js, respectively. 2. Go to the project06-01.html file in your code editor and link the page to the project06-01.js file, deferring the script from loading until after the page loads. Take some time to study the sign-up form. Note that the pwd field contains a regular expression pattern that will be used to verify that the password is in the proper format. Save your changes to the file. 3. Go to the project06-01.js file in your code editor. Below the comment section declare the following variables: submitButton referencing the element with the id "submitButton", pwd referencing the element with the id "pwd", and pwd2 referencing the element with the id "pwd2". 4. Create an event listener for the click event occurring with the submitButton that runs an anonymous function. 5. Within the anonymous function add the following if else structure: 1. If the pwd field fails the pattern match, display the validation message "Your password must be at least 8 characters with at least one letter and one number". 2. Else if the value of the pwd field does not equal the value of the pwd2 display the validation message "Your passwords must match". 3. Otherwise, set the validation message to an empty text string. 6. Save your changes to the file and then open project06-01.html in your web browser. 7. Verify that you cannot submit the form if your password is less than eight characters long and does not include at least one number and one letter. 8. Verify that you cannot submit the form if the two passwords do not match.
Expert Answer:
Answer rating: 100% (QA)
Heres a stepbystep guide to completing the tasks youve outlined Open the project0601txthtml and proj... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
The annual revenues associated with several large apartment complexes are $300, $450, $425, $50, $75, and $150 for years 0, 1, 2, 3, 4, and 5, respectively. Determine the net cash flow and whether...
-
What weight change occurs when your mass increases by 2 kg?
-
Describe the value added of personal selling.
-
Consider the hemodialysis device in Example 24.1. Examine the effect on the rate of urea removal of changing the hemodialyzer geometry, the blood and dialysate flow rates to the dialyzer, the rate of...
-
On December 1, Jasmin Ernst organized Ernst Consulting. On December 3, the owner contributed $84,000 in assets in exchange for its common stock to launch the business. On December 31, the companys...
-
In-Class Exercise Altitude Temperature | Pressure H, ft T, F P, 20/14= -5000 74.84 1755 57.00 14.70 Troposphere Enter the data from this table. 5000 4617 12.23 10000 23.30 10.11 15000 6.55 8.30...
-
Suppose availability and purchase costs for V8 short blocks at Juarez and New Orleans are the same as in problem #2 (without tariffs). However, suppose that HP does not pay shipping from Juarez or...
-
A process is an instance of a running program, and a program is an executable stored on a persistent storage (e.g., disk). Suppose we want to design an OS so that for any program, there can be only...
-
9. Open the Insurance Company Entry form in Design View and right align the right edges of the Insurance Code and Company Name labels. Left align the Insurance Code and Company Name text boxes. Add a...
-
The projected EBIT of a firm is $300,000. The firm currently has 100,000 shares of common stock outstanding at a value of $18 per share. The firm has no debt. By how much will the ROE change if the...
-
Umberto Boccioni's Unique Forms of Continuity in Space is a work in which style?
-
A mass of 3.75kg is permanently attached to a spring. The spring has a spring constant K, of 2000 N/m. The doing is attached 0.09 m to the right and then released from the rest on a horizontal...
-
Discuss demographics versus psychographics in relation to sport marketing. How do these two approaches to our sport market categorization differ? Also, please discuss your opinion in response to...
-
Bruce Lee is the proprietor of Lees Picture Framing. He uses the perpetual method to record inventories. The accounting period is 12 months. LEES PICTURE FRAMING Trial Balance (Extract) as of 30 June...
-
What key concerns must functional tactics address in marketing? Finance? POM? Personnel?
-
Your supervisor has asked you to research the following situation concerning Owen and Lisa Cordoncillo. Owen and Lisa are brother and sister. In May 2012, Owen and Lisa exchange business pickup...
-
Jenny earns $34,500 in 2012. Calculate the FICA tax that must be paid by: Jenny: ..............................Soc,Sec. ..................$______________...
-
Sally hires a maid to work in her home for $250 per month. The maid is 25 years old and not related to Sally. During 2012, the maid worked 10 months for Sally. a. What is the amount of Social...
-
What are the stages in the product life cycle?
-
What is the hype cycle?
-
What is meant by the term agile innovation?
Study smarter with the SolutionInn App