I'm trying to retrieve the options below, depending on the one the user selects, I'm bulliding a Calculator Program where user inputs 2 values via input box and then selects an operation:
Code: (Javascript)
[HTML]<select id="mySelect">
<option>+</option>
<option>-</option>
<option>*</option>
<option>/</option>
</select>[/HTML]
I've tried the following statement and then tried to pass 'operation' to another function, however the value I retrieve is [object]: var operation=document.getElementById("mySelect");
So, How do I retrieve Drop Down Menu opions? and then pass them to another function?
Ta
P.S. Is it necessary I place <FORM> tags around the <select> tags?