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

  How to design a new isa

How to design a new ISA? What should take into consideration?

  Draw a circuit which implements a 1-to-2 decoder

Q1. Write the truth table for a 1-to-2 decoder. Draw a circuit which implements a 1-to-2 decoder using AND gates, OR gates and NOT gates only.

  Explaining topic important for network administrators

Why is the topic important for network administrators today?

  What is the smallest negative number

given a tiny computer that has a word size of 6 bits, what is the smallest negative number that this computer can represent if it uses two's complement form

  Write functions and steps for various window applications

Write down the functions and steps involved in various window applications. What is mail merge? Enumerate the steps involved in mail merge.

  Compute the transmission line utiliza

Consider that packets arrive at an internet router from 3 different other routers, each with Poisson arrivals with l = 4 per second. The packets are all transmitted on the same transmission line

  What your research aims to do

You need to describe what your research aims to do, the objectives that need to be meet to get to the final aim, the context and technical background of the work and also why it is important that this work is carried out.

  Explain compiler assign subcomputations

How would you have compiler assign 14 subcomputations to 15 cores? Describe briefly. (Symmetry means there is no unique answer).

  How many sensors does snort use

Is Snort an HIDS or an NIDS? 2. How many sensors does Snort use? 3. What does a preprocessor do? 4. Is Snort anomaly-based or signature-based?

  A string may use more than one type of delimiter

A string may use more than one type of delimiter t bracket information into "blocks" for example, A string is properly delimited if each right delimiter is matched with a perceding left delimiter of the same type in such a way that either the resu..

  Who are learning software programming

Discuss when scripting should be taught to individuals

  Takes a btree as it''s argument

Write a function that takes a btree as it's argument and returns a pair consisting of the left and right subtrees. Define an exception for the erroneous case where the tree is empty.

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