Use JavaScript to validate user inputs for this HTML form. Create a new HTML page, LabTest.html, build form. Using external JavaScript to do the validation, for example, create a validate_form.js file. Your html code should pass the validation, put an validation icon at the bottom of the page. Following submission instructions for this exercise: No empty input. All form elements should have an input. 2. Maximun input characters of "First name" or "Last name" are 50 characters. Maximun input characters of "Address" are 300 characters. 4. For correct user inputs, show the user inputs in an alert window. Othersiwe, warn the user in an alert window.

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter8: Arrays
Section: Chapter Questions
Problem 3E
icon
Related questions
Question

Use JavaScript to validate user inputs for this HTML form. 

Create a new HTML page, LabTest.html, build form. Using external JavaScript to do the validation, for example, create  a validate_form.js file. Your html code should pass the validation, put an validation icon at the  bottom of the page. Following submission instructions for this exercise:

  1. No empty input. All form elements should have an input. 2. Maximun input characters of "First name" or "Last name" are 50  characters. 
  2. Maximun input characters of "Address" are 300 characters. 4. For correct user inputs, show the user inputs in an alert window.  Othersiwe, warn the user in an alert window.
Personal Information
First Name
Last Name
Female OMale
Nationality Canadian|
Gender
Address
Medical History
E Smallpox E Mumps E Dizziness Sneezing
Current Medication
Are you currently taking any medication? e Yes No
If you are currently taking medication, please indicate it in the space below:
Submit
Reset
Transcribed Image Text:Personal Information First Name Last Name Female OMale Nationality Canadian| Gender Address Medical History E Smallpox E Mumps E Dizziness Sneezing Current Medication Are you currently taking any medication? e Yes No If you are currently taking medication, please indicate it in the space below: Submit Reset
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Hyperlinks
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L