Hi, I've got a problem I expect you guys'll solve in 5 seconds but has been troubling all day.
Right here it is. I've got the following code:
<script language="JavaScript">
function updateCurrency() {
var totamount = document.newItem.payment.value
writeLayer("totalAmount", totamount);
}
</script>
<form name="newItem">
<select name="payment" onchange="javascript:updateCurrency()">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
<DIV id=totalAmount><script>document.write(totamount)</script></div>
</form>
Basically what I want todo is display the contents of the select box just as plain text next to it. I'd be greatful if anyone could help. Thanks
Right here it is. I've got the following code:
<script language="JavaScript">
function updateCurrency() {
var totamount = document.newItem.payment.value
writeLayer("totalAmount", totamount);
}
</script>
<form name="newItem">
<select name="payment" onchange="javascript:updateCurrency()">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
<DIV id=totalAmount><script>document.write(totamount)</script></div>
</form>
Basically what I want todo is display the contents of the select box just as plain text next to it. I'd be greatful if anyone could help. Thanks