Hey just starting out at js and have a small problem.
I have a drop down menu that I want to write back what the users selection is.
I can get the value of it by using eg: placevalue=document.getElementById(“locstat”).value;
OpenWindow.document.write(“<p>You have asked fro a package to be delivered” + placevalue + “.</p>”);
but I dont want the value, I want the label that they selected.
like if my menu had the following items
<select name=”place” id=”locstat”>
<option value=”3″>Brisbane $3</option>
<option value=”5″>Melbourne $5</option>
<option value=”4″>Sydney $4</option>
<option value=”6″>Adelaide $6</option>
<option value=”8″>Perth $8</option>
<option value=”7″>Hobart $7</option>
<option value=”6″>Darwin $6</option>
</select>
I want to write back eg: brisbane $3 or which ever one they select not its value.
thanks in advance