HTML5 page with JavaScript assignment help

computer science

Description

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 the name, one for an 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.


Related Questions in computer science category


Disclaimer
The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.