a select value problem

T

Thad

In the html I have a select option. I am trying to get the result of the
selection(u5503_qty*5) to print after some text. I am having a problem
grabbing the value of u5503_qty from the html to use in the javascript. Can
somebody correct me on this?


Step 4. How many would you like?<br />
<select name="u5503_qty" size="1">
<option label="1" value="1" selected>1</option>
<option label="2" value="2">2</option>
<option label="3" value="3">3</option>
<option label="4" value="4">4</option>
<option label="5" value="5">5</option>
</select>
<br />
At this point, your charges will be....$
<script type= "text/javascript">
var y=5;
document.write(Number(document.value.u5503_qty)*5);
</script>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top