Task 3: Data Form Validation Considering the following Form. Javascript code Write a validation.html and validation.js the data of this form. Create the validate Function calling validate() to check...



Task 3: Data Form Validation


Considering the following Form.


Javascript code


Write a validation.html and validation.js the data of this form.





  1. Create the validate Function callingvalidate()to check input data when user click on the
    submit


This
validate() Function check:



  • If the First Name is Empty, display a message " First name required " in the Error division

  • If the Second Name is Empty, display a message " Second name required " in the Error division

  • If no Error, display the entered data in the searches division.


2. Create the clearAll Function calling
clearAll()to clear all input data and the two division in body Error division and searches division.



+<br>x Data Form Validation<br>عدم المزامنة<br>C:/Users/USE. | lo O<br>Data Form Validation<br>Enter your First Name<br>Enter your First Name<br>Submit<br>Clear<br>

Extracted text: + x Data Form Validation عدم المزامنة C:/Users/USE. | lo O Data Form Validation Enter your First Name Enter your First Name Submit Clear

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here