Getting a drop down box value with javascript?
- by ritch
I'm trying to get the value currently selected and I simply want to alert it.
I current have this:
<script type="text/javascript">
alert(forms.elements('sets').value);
</script>
HTML:
<form>
<select name="sets">
<option value="1">1 Set</option>
<option value="2">2 Sets</option>
<option value="F">3 Sets</option>
</select>
</form>