Problem Statement:

Create a script which validates the following details in the webpage: Name, Password, Mobile No., and Email ID. (Name should contains at least 6 characters, Password should contain at least 6 characters, Mobile No. should contain exactly 10 digits and Email ID should be in correct format).

Source Code:

ex7.html

ex7script.js

Output:

Click here for output