Hi I'm trying to get the text from the selected <option> of a <select>
I can get the value of the select but if I try doing .text instead of .value i get an undefined responce.
Code:
function loadSelectQuestion()
{
var dropdownIndex = document.getElementById('selectCategory').value;
document.getElementById('selectQuestion').innerHTML = dropdownIndex;
}
Comment