Prev Question
Next Question

Consider the following select list:

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

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);

Explanation:

Prev Question
Next Question

Leave a Reply

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