Question: Duration: 35min Document 1 1 + e File C:/Users/emreo/Desktop/Questio : Visa Master Card O ID Card Validate My Card Validate a. pts) Write the source
Duration: 35min Document 1 1 + e File C:/Users/emreo/Desktop/Questio : Visa Master Card O ID Card Validate My Card Validate a. pts) Write the source code for the HTML page above. Note that the page has three radiobuttons, one label, one text control, one button, and one div with "as content. b. spts) Add a JavaScript block to handle the click event of the button "Validate". Your JavaScript code should validate a card number for the following cards via regular expressions. After the validation process, the result should be displayed with the text valid" or "invalid" through the div. Card Formats: For Visa: 12 or 15 digits followed with "V" character. (Sample 1: 123456789012V Sample 2: 123456789012345V) For MasterCard: Starting with 21 through 25, length should be 10 digits. (Sample 1: 2112345678 Sample 2: 2512345678) For ID Card: length should be exactly 8 digits. (Sample 1: 12345678 Sample 2: 87654321)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
