Validate a field for minimum length

Assignment Help Basic Computer Science
Reference no: EM13231732

Below is an assignment I need help with in JavaScript.
Instructions: 
This assignment has two parts:

1. Write a JavaScript program that performs the following actions (in sequence, step-by-step):

a) Welcomes the visitor
b) Prompts the visitor for his/her name
c) Displays the users name on the screen
d) Asks the visitor to enter two numbers
e) Adds these two visitor entered numbers and add them together and returns the result to the visitor
f) Thanks the user for using the program

You will be required to concatenate two strings.

2. Take the form you created in assignment 3 and put a copy of it into a new file. You can also create an entirely new form if you would like. Use JavaScript to perform client-side validation on at least three fields with the following specifications:

a) Validate a field for minimum length
b) Validate another field for both minimum length and numeric or alpha characters only
c) Validate an email address that must be in a valid email format

The form should not be permitted to submit unless all fields pass validation.

Parts 1 and 2 must be completed in separate files.

To ensure a good grade, add additional work to style the page and form elements. Just be sure to provide original work for all aspects of the assignment. 

Reference no: EM13231732

Questions Cloud

What do the following commands do : What do the following commands do
State a balanced equation for the neutralization : Write a balanced equation for the neutralization of each of the following. Express your answer as a chemical equation. Identify all of the phases in your answer
Explain the abo genotype and blood type : ABO Blood Type Problem: A woman is married for the second time, What is the woman's ABO genotype and blood type
Define neutralization reactions : Balance each of the following neutralization reactions. Express your answer as a chemical equation. Identify all of the phases in answer.
Validate a field for minimum length : Write a JavaScript program that performs the following actions (in sequence, step-by-step):
Define and complete and balance the equations for reactions : Complete and balance the equations for each of the following reactions. Express your answer as a chemical equation. Identify all of the phases
How does operating objective change size of deadweight loss : Assume that a monopolist decides to maximize revenue instead of profit. How does this operating objective change the size of the deadweight loss If you are a "benevolent" manager of a monopoly firm and are interested in reducing the deadweight los..
Write a query that will return the customer number : Write a query that will return the customer number
Explain what is likely to occur in the market and why : At its current level of production, a profit-maximizing firm in a competitive market receives $12.50 for each unit it produces, and it faces an average total cost of $10. At the market price of $12.50 per unit, the firm's marginal cost curve cross..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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