I have the following condensed form
<form name="thecars">
<select name="cars">
<option value="mustang">Mustang</option>
<option value="pinto">Pinto</option>
<option value="pinto">Chevelle</option>
<option value="pinto">Other</option>
</select>
</form>
I am trying to get the value of the selected car by the following but it is not working
selectedCar = document.forms["thecars"].elements["cars"].options[thecars.cars.options.selectedIndex].value;