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

  Style is require but comments are not

Style is require but comments are NOT required.  ? Include appropriate import statements for your file.

  A relational database model

A relational Database Model allows database users to analyze data thoroughly.

  Write an iterative function power1 ,power2,power3

This problem considers several ways to compute xn for some n >= 0. (a) Write an iterative function power1 to compute xn for n >= 0.

  Deriving logging information for chinese wall model

In the example of deriving required logging information for the Chinese Wall model, it is stated that the time must be logged.Why? Explain.

  To perform queries

To perform queries on a relational database system using SQL? To demonstrate an advanced knowledge of stored procedures, stored functions and triggers.

  Determine entities from functional requirements

Using Crow's feet, determine and draw relationships between entities. (Typically verbs in sentences will recognize these). Find out the entities from functional requirements.

  Explain vulnerability in the system

How would you respond if Goli came to you describing a vulnerability in your system and offering to help fix it--What would incline you to hire her? What would disincline you from doing so?

  Different kinds of tasks which humans could perform by ai

Intelligence use AI to do different kinds of tasks which only humans could perform. Research Internet and explain how AI works to make bots resemble human intelligence.

  Explain nefarious computer activities known ping sweeps

Write short description of what they are and include assessment of whether this activity is something to worry about or not.

  Create a class for triangle objects

Create a class for Triangle objects..Triangle class should inherit from a Shape class and implement its own getArea() and getPerimeter() methods. create a program to test Triangle class and include a method that takes a Shape object as a parameter..

  Show fetch-execute cycle for instruction that clears

Using the register operation's, show the fetch-execute cycle. Show the fetch-execute cycle for an instruction that clears A (i.e., sets A to 0).

  Simple math quiz that asks a user

Construct a simple math quiz that asks a user to answer a math problem of your choice. On the form, place one text box (txtAnswer) and two command buttons (cmdAskQuestion and cmdVerifyAnswer).

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