Please help me solve this javascript problem. Thanks Form.html code: https://bit.ly/3L818ML 1 Problem Statement Validate the fields
Fantastic news! We've Found the answer you've been seeking!
Question:
Please help me solve this javascript problem. Thanks
Form.html code: https://bit.ly/3L818ML
Transcribed Image Text:
1 Problem Statement Validate the fields in the given html form using JavaScript and regular expressions Requirements and Constraints Your implementation must absolutely respect the following requirements: Use jQuery [2] to manipulate (access, update, and style) the Web from elements. Files to Create/Use and Main Steps to Follow 1. Create JavaScript file called script.js and link it to your form.html 1.1.1 Instructions and Requirements Your application must show an error message using an alert box (Bootstrap status message). The number of errors must be shown as well as a detailed message for each and every invalid field. In case of an error, the alert box's background color must be changed to light red. The alert box must be controlled (hide/show) using jQuery [2] (see Figure 3 for more details). The background of the invalid fields must be change to pink. You must use the jQuery [2] to change the style properties of any HTML element The validation process must be triggered only and only upon submitting the web form. Therefore, the type of the submit button must be button and not submit. Upon clicking the submit button, a function named validateFrom() must be called. This function does not receive any parameter. It validates the form's elements one by one using regular expressions. You must also validate the length of the entered data. For example: a password must be 6 to 8 characters long. If all the fields are valid, an alert box must be shown. The background color of valid fields must be light green (see Figure 2). 1 Problem Statement Validate the fields in the given html form using JavaScript and regular expressions Requirements and Constraints Your implementation must absolutely respect the following requirements: Use jQuery [2] to manipulate (access, update, and style) the Web from elements. Files to Create/Use and Main Steps to Follow 1. Create JavaScript file called script.js and link it to your form.html 1.1.1 Instructions and Requirements Your application must show an error message using an alert box (Bootstrap status message). The number of errors must be shown as well as a detailed message for each and every invalid field. In case of an error, the alert box's background color must be changed to light red. The alert box must be controlled (hide/show) using jQuery [2] (see Figure 3 for more details). The background of the invalid fields must be change to pink. You must use the jQuery [2] to change the style properties of any HTML element The validation process must be triggered only and only upon submitting the web form. Therefore, the type of the submit button must be button and not submit. Upon clicking the submit button, a function named validateFrom() must be called. This function does not receive any parameter. It validates the form's elements one by one using regular expressions. You must also validate the length of the entered data. For example: a password must be 6 to 8 characters long. If all the fields are valid, an alert box must be shown. The background color of valid fields must be light green (see Figure 2).
Expert 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
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
A company has the following results for the three years to 31 October 2020: Assuming that all possible claims are made to relieve the trading loss against total profits, calculate the company's...
-
What were the benefits to Gol of a listing on the New York Stock Exchange in addition to the Sao Paulo Bovespa?
-
Why is marketing research such an attractive career today?
-
The highest-energy cosmic ray ever detected had an energy of about \(3.0 \times 10^{20} \mathrm{eV}\). Assume that this cosmic ray was a proton. a. What was the proton's speed as a fraction of \(c\)...
-
Accounting for Organization Costs Fontenot Corporation was organized in 2009 and began operations at the beginning of 2010. The company is involved in interior design consulting services. The...
-
Two slinkies are tied together. A wave in the first slinky travels with a velocity 4.0 m/s and wavelength of 1.5 m. After transmission the velocity in the second slinky is 7.0 m/s. Determine the...
-
1. Jim Adams posts the column totals and individual transactions in "Other" columns to the appropriate general ledger account and updates each general ledger account balance. He places a posting...
-
Consider a bank with $35,000,000 in gross residential mortgage loans, and its historic losses have been 0.91% on its residential mortgage loans. If the bank wants to net a 5% return on its...
-
you will"write as you go" which means as you make your design decisions and conduct your study, you willcompose your research report. This process is critical in order to not only conduct your study,...
-
Putting all your personal information in the cloud means letting go of some control over information like your tax files, personal photos that might not want anyone else to see, term papers you're...
-
Optical character recognition (OCR) basically means you are converting an image of text into machine-readable (and, therefore, searchable and editable) text. However, using OCR to convert an old...
-
Describe in detail what Fight or Flight means and what this chapter is about. Consider the main points of the chapter and what should be the reader's "takeaway" after summarizing. I can't get an...
-
PROMPT: Separability between mobile app and business operation means launching mobile app does not automatically allow firms to operate their business. Uber is a good example. Uber's business...
-
Let R? have the inner product of Euclidian Space and let x = (1,1) and y = (5,-1) (a) Find ||x||, |ly|| and |(x, y)2 (b) Describe all vectors (z1, z2) that are orthogonal to y. (c) Also show Cauchy...
-
Choose a company from the SEC EDGAR Web site for your Key Assignment to evaluate for the impact of convergence to IFRS. Review the financial reports and notes of the company you have chosen from the...
-
Indicate, in each of the following situations, the number of exemptions the taxpayers are entitled to claim on their 2012 income tax returns. Number of Exemptions a. Donna, a 20-year-old single...
-
Laura is a single taxpayer living in New Jersey with adjusted gross income for the 2012 tax year of $35,550. Laura's employer withheld $3,300 in state income tax from her salary. In April of 2012,...
-
Mike purchases a heavy-duty truck (5-year class recovery property) for his delivery service on April 30, 2012. The truck is not considered a passenger automobile for purposes of the listed property...
-
The following information is available for McKee Corporation for 2015. 1. Excess of tax depreciation over book depreciation, 40,000. This 40,000 difference will reverse equally over the years...
-
In 2015, Amirante Corporation had pretax financial income of $168,000 and taxable income of $120,000. The difference is due to the use of different depreciation methods for tax and accounting...
-
Brennan Corporation began 2015 with a $90,000 balance in the Deferred Tax Liability account. At the end of 2015, the related cumulative temporary difference amounts to $350,000, and it will reverse...
Study smarter with the SolutionInn App