Hi there,
I have X as the value selected in a drop down
To X I want to link and display the below value defined in the following arrays.
Does anyone know how to link this code to the X value resulting for the drop down selection ?
<script type="text/javascript">
var colour_shop= new Array ();
colour_shop["Colour Shop A"] = "4 usd";
colour_shop["Colour Shop B"] = "7 usd";
colour_shop["Colour Shop C"] = "12 usd";
document.write("<table border=\"1\" cellpadding=\"5\">");
document.write("<tr><th>Product</th><th>Price</th></tr>");
( var transfer in colour_shop) document.write( "<tr><td>" + Product + "</td><td>" + colour_shop[Product] + "</td></tr>");
document.write ("</table>");
</script>