Interview Questions

How do you get the value of a combo box in Javascript?

ASP Interview Questions and Answers


(Continued from previous question...)

129. How do you get the value of a combo box in Javascript?

Answer1.
document.forms[’formName’].elements[’comboName’].options[i].value

Answer2.
document.form_name.element_name.value

(Continued on next question...)

Other Interview Questions