Hello,
I was wondering if someone could tell me how to create a variable that pulls the value from a select form element.
Thanks,
Katrina
Hello,
I was wondering if someone could tell me how to create a variable that pulls the value from a select form element.
Thanks,
Katrina
<select id="fruit" name="fruit">
<option value="a">Apples</option>
<option value="o">Oranges</option>
</select>
var fruit = document.getElementById("fruit").value;
Thanks!