What is the predefined class for non-digits

Assignment Help Computer Engineering
Reference no: EM132088475

Validating form data: Make a copy of the order form from lab exercise 4 and name it l6p2.php.

Remove the JavaScript code to calculate the total price. If you used anything other than a plain text box for quantities, change the quantity inputs to type="text".

(The goal of this part of the assignment is for you to use regular expressions to validate text.)

Add JavaScript code to produce an error message and suppress submission of the form if any quantity field contains non-numeric data. (It's OK for a quantity to be empty, but if it's non-empty, it must have only numbers.) Add an action= attribute to your tag to submit the form.

Test that the form is submitted correctly when the quantities are numeric or empty, and that an error message is produced otherwise.

(Regular expressions are your friend. Anything that's not a digit is bad. What is the predefined class for non-digits?)

Add to your index page a link to your new order form. As with the previous assignment, the goal is to learn to validate with JavaScript.

The use of an input element with type "number" or anything similar will earn a zero on this part of the assignment. You must use JavaScript for the validation.

Reference no: EM132088475

Questions Cloud

Compute cost of goods sold expense : Martin Corp. began the year with 2,000 units of inventory that had been purchased for $6 per unit. Compute cost of goods sold expense
Draw a legal binary min heap that stores these keys : Draw a legal binary min heap that stores these keys such that after deleting 8 from the heap, the resulting repair of the binary heap involves.
Create an html web page contains an image : Add a form to your web page from Part 1. The action of the form should be to the formmail.cgi script on the personal web server .
Analyse available purchase methods : MBA404 - Consumer Behaviour and Marketing Psychology - Evaluate alternatives and narrow down the attributes of the FMCG product that satisfy the need or want
What is the predefined class for non-digits : Test that the form is submitted correctly when the quantities are numeric or empty, and that an error message is produced otherwise.
Write a cpu class that has one member function : Write a CPU class that has one member function, ‘Execute,' which simply gets called to execute the process.
What does a vertex in your state traversal tree represent : Present this result in terms of n and p where nxn is the size of the Sudoku board and p is the number of possible numbers (1-9) permitted in a square.
What are follicle cells : What are follicle cells? What hormone is secreted by developing follicle cells?
Anatomy and physiology : If a section of a DNA template stand contained the sequence TGAGAC, what would be the sequence of bases of the complementary mRNA strand

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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