Forums

This topic is locked

dropdown box display selected value

Posted 18 Feb 2008 11:16:55
1
has voted
18 Feb 2008 11:16:55 Bill Brandes posted:
<BODY onload=showrate();>


<TR><form name="form1" id="form1">
<TD class=txt>Select Call
Destination:</TD></TR>
<TR>
<TD class=txt><SELECT name=countryRates onChange="showrate();">
<OPTION value=0>Select Country</OPTION>
<OPTION value=0.22>Afghanistan</OPTION>
<OPTION value=0.21>United Kingdom</OPTION></SELECT></TD></TR>




<script language="JavaScript">
function showrate()
{

var RateLookup_LandingPages1_lblPrice = document.form1.countryRates.options[document.form1.countryRates.selectedIndex].value;


}
//--></script>



Above i have a dropdown box (i shortened the list) that shows countries. A user selects a country and I want to be able to show the rate in an exact position on the page (not in a box). Preferably show the cents sign or the dollar sign depending on the amount. I am racking my brain and cannot even get the value to appear.

Thanks for any help. I am a novice with this by the way so it is hard to follow the logic.

Gib

Reply to this topic