PrepAway - Latest Free Exam Questions & Answers

How should you complete the relevant code?

HOTSPOT
You develop an HTML5 webpage that contains the following markup and code:

You have the following requirements:
Display a message if users select the first OPTION element, and then submit the form.
Do not display an alert message if users select any other OPTION element, and then submit the form.
You need to implement the madeSelection() function.
How should you complete the relevant code? (To answer, select the appropriate code segment from each dropdown list in the answer area.)
Hot Area:

PrepAway - Latest Free Exam Questions & Answers

Answer:

Explanation:
* The <select> element is used to create a drop-down list.
The <option> tags inside the <select> element define the available options in the list.
* option.value
text
Specifies the value to be sent to a server
HTML <option> Tag


Leave a Reply