The below javascript changes a textfield depending on what is selected from a list/menu in a form. How can I get it to print the price as text rather then print it into a textfield?
// set up the data to be consistent to start with.
document.exf1.country.selectedIndex=0;
document.exf1.amount.value=prices[0];
function updatePrice() {
var v = document.exf1.country.selectedIndex;
var x = document.exf1.country[v].value;
var y = eval(x);
document.exf1.amount.value=prices[y];
}
Regards
oli
Not a php question I know, but these forums are so damn good...