Originally posted by Stevee
<html>
<head><title>?? ?</title>
[CODE=javascript]
<script type="text/javascript">
function getinfo()
{
var mylist=document .getElementById ("info")
document.getEle mentById("displ ayinfo").innerH TML=mylist.opti ons[mylist.selected Index].value
}
function getinfo1()
{
var mylist=document .getElementById ("info1")
document.getEle mentById("displ ayinfo1").inner HTML=mylist.opt ions[mylist.selected Index].value
}
function getinfo2()
{
var mylist=document .getElementById ("info2")
document.getEle mentById("displ ayinfo2").inner HTML=mylist.opt ions[mylist.selected Index].value
}
</script>
<script type="text/javascript">
function startCalc()
{
one = mylist=document .getElementById ("info").val ue;
two = mylist=document .getElementById ("info1").value ;
three = mylist=document .getElementById ("info2").value ;
TotalValue.valu e = (one * 1) + (two * 1) + (three * 1);
}
</script>
</head>
<body>
<table border="1">
<tr>
<td width="95" align="right">
<select id="info" onchange="getin fo();startCalc( )">
<option selected price=" ">Select</option>
<option value="19.00">U nit 1</option>
<option value="22.00">U nit 2</option>
<option value="25.00">U nit 3</option>
<option value="29.00">U nit 4</option>
<option value="32.00">U nit 5</option>
</select>
</td>
<td width="75" align="right" id="displayinfo "> </td>
</tr>
<tr>
<td width="95" align="right">
<select id="info1" onchange="getin fo1();startCalc ()">
<option selected price=" ">Select</option>
<option value="84.00">N ext 1</option>
<option value="85.00">N ext 2</option>
<option value="86.00">N ext 3</option>
<option value="87.00">N ext 4</option>
<option value="88.00">N ext 5</option>
</select>
</td>
<td width="75" align="right" id="displayinfo 1"> </td>
</tr>
<tr>
<td width="95" align="right">
<select id="info2" onchange="getin fo2();startCalc ()">
<option selected price=" ">Select</option>
<option value="99.00">A gain 1</option>
<option value="92.00">A gain 2</option>
<option value="95.00">A gain 3</option>
<option value="99.00">A gain 4</option>
<option value="92.00">A gain 5</option>
</select>
</td>
<td width="75" align="right" id="displayinfo 2"> </td>
</tr>
<tr>
<td width="95" align="right">T otal = </td>
<td id="TotalValue " width="75" align="right" value=""> </td>
</tr>
</table>
</body>
</html>
[/CODE]
Comment