The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Script 1
Create an HTML5 page with JavaScript containing a form that simulates a credit card payment submission form. The user will input values in each field of the credit card form. Validate the form per credit card requirements. Cater for Visa, Mastercard and American Express credit card types. Use http://ss1.ciwcertified.com/cgi-bin/process.pl as the action for the form and include the novalidate attribute in the tag. Use the following rules for credit card number validation: Visa card numbers always begin with the numeral 4 and use 16 digits. MasterCard numbers always begin with the numeral 5 and use 16 digits. American Express card numbers always begin with the numeral 3 and use 15 digits. If the information entered is incorrect based on the card type selected, ask the user to either select a different credit card or change the card number. If the information entered is correct, acknowledge that.
Script 2
Create an HTML5 page with JavaScript containing a form that includes 2 textboxes (one for name, one for email address), a textarea, a dropdown box, a set of radio buttons, and a set of checkboxes. The action attribute of the form tag should be an alert displaying the valid information entered into the form. Add JavaScript event handlers to the form to validate the form. If there is a problem, display the problem with the page in some way. Possible ways to do this are: a pop-up box displaying the problems in a new window in red text displaying the problems in red text next to each field Validate that an entry has been made in each form element. Validate that the email address contains an @ sign. Add a second drop down list and make this second one dynamic, i.e. make the choices that appear in the second drop down list depend on what choice is made in the first list.
-----------