Create a contact form and run it

Assignment Help Basic Computer Science
Reference no: EM13982070

Need a contact form with the following:

A form for new clients to fill out and submit

The form must contain the following fields:

o First Name

o Last Name

o Street Address o City

o State o Zip Code

o Message

A button labeled "Submit"

When the button is clicked, the data in the form should be validated.

Validation should confirm that all input meets the following requirements:

o All fields are required and therefore must contain some data.

o The data in the First Name field must be greater than 1 character and less than 20.

o The data in the Last Name field must be greater than or equal to three characters, and less than 20.

o The data in the State field must be exactly two characters.

If the form contains any invalid data based on the rules defined above, a "glyphicon-remove" icon should be displayed next to the field (HINT: By adding/removing one more classes to/from a span via a JavaScript, glyphicons can toggle on/off dynamically) and an alert message should be displayed instructing the user to fix the error.

o NOTE: If invalid data is corrected, the glyphicon-remove should be removed.

If all fields are validated as containing correct input, a confirm window should be displayed.

o The confirm window should include the following content:

The content from all fields

A request for the user to confirm the input with OK, or CANCEL to edit o If the user selects OK in the confirm window:

An alert window should be displayed indicating that the message was sent, along with a date/time stamp of the current time.

The form should be reset (all text should be cleared and no glyphicons should be visible).

o If the user selected CANCEL in the confirm window:

The confirm window should close and all user data should remain in the form.

Format for submission: Need HTML file and JavaScript files.

Reference no: EM13982070

Questions Cloud

What is the difference between the fed and the treasury : What is the structure of the Fed? What is the difference between the Fed and the Treasury? What are the goals of the Fed? What actions are at the disposal of the Fed?
What are the two principles of protocol layering : Define the three types of data flow. What are the two principles of Protocol Layering?
Library of customer success stories : A consulting company that provides software and services relating to business intelligence and analytics has a library of customer success stories on its website at http://www.sas.com/success/indexByTopic.html#1000.1001.0000.
Original real wage rate-employment-output-real interest rate : What is the effect of a decrease in wealth on the IS-LM-FE graphical model, as well as what it would do to the original real wage rate, employment, output, real interest rate, , consumption, private saving, investment, and price level in short run eq..
Create a contact form and run it : If the form contains any invalid data based on the rules defined above, a "glyphicon-remove" icon should be displayed next to the field (HINT: By adding/removing one more classes to/from a span via a JavaScript, glyphicons can toggle on/off dynami..
How would you find the approximate value ofm : You are told nothing else aboutf, but you may ask for the value off(x) for any values ofx you choose. How would you find the approximate value ofm? How accurately could you findmif you could choose only 10 values ofx for which to evaluatef(x)?
Sarbanes-oxley implications on the preceding facts : Discuss the Sarbanes-Oxley implications on the preceding facts. Cite specific provisions of SOX that are identified. Discuss areas where other violations could occur.
What is the change in capital-labor ratio in initial period : Suppose an economy has the following per-worker production function: What is the consumption in the initial period? What is the change in the capital-labor ratio in the initial period?
How many electrons can be put into the shell : These numbers can be obtained by adding the numbers given in the figure for the subshells contained within a given shell. How many electrons can be put into the n = 5 shell?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Required to create a small web site

You are required to create a small web site. You have to choose the project idea and work in it as individual or with a group of maximum two students.

  Audience is the way ideas are organized and presented

Audience is the way ideas are organized and presented in a text

  Classify the following vulnerabilities using the risos model

Classify the following vulnerabilities using the RISOS model. Assume that the classification is for the implementation level. Justify your answer.

  What type of damage these computer infections can do to data

Virus, Trojan, Worm, Rootkit, Describe how each applies to the realm of data communication. Also, discuss what type of damage these computer infections can do to data in a computer.

  What do the following commands do

What do the following commands do

  Briefly explain how a penetration tester could assess risk

Briefly explain how a penetration tester could assess the risk involved with identified vulnerabilities.

  Problem regarding the computer forensics investigations

The human resources team in your organization needs to ensure that any computer forensics investigations that your team conducts will be sound and will potentially hold up in the court of law.

  Write a method firstlast that could be added

Write a method firstLast that could be added to the LinkedIntList class that moves the first element of the list to the back end of the list. Suppose a LinkedIntList variable named list stores the following elements from front (left) to back (right)

  Assignment related to agile project management

Question 1: Develop a release plan based on a feature-story example that has at least three capabilities, features, and stories. Question 2: Explain what your iteration 0 would accomplish after your feature-story example is released.

  Cost of equity capital is closest

Suppose the cost of capital of the Gadget Company is 12 percent. If Gadget has a capital structure that is 60 percent debt and 40 percent equity, its before-tax cost of debt is 5 percent, and its marginal tax rate is 20 percent, then its cost of equi..

  Compare the running time of this modification

Compare the running time of this modification with that of the original algorithm on sequences that are nearly sorted or reverse sorted, and on sequences with many identical elements. What do you observe?

  What is a distributed hash table

What is a Distributed Hash Table

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd