HTML Javascript question
to get the selected value of a input-select I can use
suggested jQuery version:
jQuery("#gender").find("option[value='" + jQuery("#gender").val() + "']").text()
var el = document.getElementById('gender');
var text = el.options[el.selectedIndex].innerHTML;
This should work:
var label = document.getElementById('gender')[document.getElementById('gender').selectedIndex].innerHTML;