0% found this document useful (0 votes)
2 views

Assignment 5

The document outlines requirements for creating a registration webpage for an insurance company, including a form with at least 10 fields and specific validation rules using JavaScript and regular expressions. It also describes the creation of an HTML file for a quiz with radio button answers and a reset function, as well as a calendar display using combo boxes for month and year selection. Key functionalities include validating last names, email addresses, calculating age from date of birth, and handling empty field submissions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Assignment 5

The document outlines requirements for creating a registration webpage for an insurance company, including a form with at least 10 fields and specific validation rules using JavaScript and regular expressions. It also describes the creation of an HTML file for a quiz with radio button answers and a reset function, as well as a calendar display using combo boxes for month and year selection. Key functionalities include validating last names, email addresses, calculating age from date of birth, and handling empty field submissions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

1. Write a javascript program to validate HTML form fields in a webpage.

i. Design a Registration Webpage for an insurance company.

ii. The form must contain a minimum of 10 fields.

iii. Implement Java Script with regular expression to validate the following

iv. For Last Name field - the last name should be dot(.) followed by single letter
combination(Note:.K or .N.L is allowed.kumar or Nakul is not allowed ).

v. For E-Mail ID accept only the gmail ID.

vi. With the Data of Birth input,calculate the age of the person and populate it in
the textbox automatically.

vii. Validate the form for empty field submissions.

2. Create an html file named as exam.html


a. Display four Questions and have four optional answers using radio buttons.
b. Display the result in a alert box.
c. Reset the page into initial condition for next exam.

3.To create an html page with 2 combo box populated with month & year, to display
the calendar
for the selected month & year from combo box using javascript.

You might also like