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
-
Circuit boards (such as those used with PCs) are fitted with holes for mounting different electronic components. The holes are drilled with a movable drill. The following table provides the distances...
-
Explain how Each Mitigation Procedure Helps Reduce Negative Impact of Liquidity risk for companies.
-
Windsor, Inc. has had 4 years of record earnings. Due to this success, the market price of its 350,000 outstanding shares of $2 par value common stock has increased from $6 per share to $52. During...
-
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...
-
Obtain The Coca-Cola Company's 2010 annual report either using the ''Investor Relations'' portion of its website (do a web search for Coca-Cola investor relations) or go to www.sec.gov and click...
-
Teresa Hill is struggling to pass her introductory accounting course. Teresa is intelligent but she likes to party. Studying is a low priority for Teresa. When one of her friends tells her that she...
-
Consider the following two congestion networks with the indicated cost functions for a flow \(x\) on the respective edge; for example, \(50+x\) is short for \(c(x)=50+x\). Note that different edges...
-
Novak Corporation is preparing its 2010 statement of cash flows, using the indirect method. Presented below is a list of items that may affect the statement. Using the code below, indicate how each...
-
QUESTION 1 "Company A has a current stock price of $200 and is expected to pay a $5 dividend in one year. The equity cost of capital is 7.5%. What price would its stock be expected to sell for im...
-
Sarah was an aspiring entrepreneur who had just started her own online clothing store. She had spent months developing her brand and sourcing the perfect products for her target market. However,...
-
Problem 8-01 eBook The Baron Basketball Company (BBC) earned $11 a share last year and paid a dividend of $5 a share. Next year, you expect BBC to earn $13 and continue its payout ratio. Assume that...
-
Provide both leftmost and rightmost derivation and a parse tree for this statement using the given grammar: A = B (A + (B * C)) --> = --> A | B | C | D -> + | * | ( ) |
-
While Karla was present, Beth spoke and accused Jim of embezzling money from the company, when in fact the bank has made a mistake in its calculations. What tort has Beth committed? [Choose ]...
-
A When Crossett Corporation was organized in January Year 1, it immediately issued 5,100 shares of $54 par, 6 percent, cumulative preferred stock and 12,000 shares of $11 par common stock. Its...
-
Write a main program that displays a single frame with the title "My First Frame". Set the size to 800 by 800. Make the frame visible.
-
Kansas Enterprises purchased equipment for $ 8 1 , 5 0 0 on January 1 , 2 0 2 4 . The equipment is expected to have a ten - year service life, with a residual value of $ 8 , 5 5 0 at the end of ten...
-
Question 2: Five metal strips as shown below are bonded together to form the composite beam. For bending moment equal to M=1800N.m calculate maximum stress in each metal. Aluminum Brass Steel 10mm...
-
Coastal Refining Company operates a refinery with a distillation capacity of 12,000 barrels per day. As a new member of Coastal's management team, you have been given the task of developing a...
-
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...
-
3. Do you love ice cream? Here is an opportunity for you! For only $800, you can buy cow from Berkshire Ice Cream. The company gets milk from the cow and you get to share in the profits from the sale...
-
5. CPA QUESTION Pace Corp. previously issued 300,000 shares of its common stock. The shares are now actively traded on a national securities exchange. The original offering was exempt from...
-
4. ETHICS ETS Payphones, Inc., sold pay phones to the public. The company then leased back the pay phones from the purchaser, promising a fixed 14 percent annual return on their investment. Although...
Study smarter with the SolutionInn App