Which of the following will select the third option in the list?

Consider the following select list:

Which of the following will select the third option in the list?(Exhibit)

Consider the following select list:

Which of the following will select the third option in the list?(Exhibit)

A.
var list = document.getElementById("numlist");
list.selected = 3;

B.
var list = document.getElementById("numlist");
list.options[2].selectedIndex();

C.
var list = document.getElementById("numlist");
list.options.selectedIndex = 2;

D.
var list = document.getElementById("numlist");
list[3].selected(true);



Leave a Reply 0

Your email address will not be published. Required fields are marked *

9 + thirteen =