Question: Using HTML and Javascript for Web Development: Create HTML form with HTML tag. This form will have 2 text boxes and a button. Textboxes will

Using HTML and Javascript for Web Development:

Create HTML form with HTML tag. This form will have 2 text boxes and a button.

Textboxes will be for name and age. in javascript function, get the information written in name and age textboxes.

Check if the age is > 18 then print "you can get driver's license" on a label. Also change the background color to blue.

if age < 18 then print "you can not get driver's license" on a label. Also change the background color to red.

Call this function on button click event.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Drivers License Checker Name Age Check License script function checkLicense var name docu... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!