i am trying to show the price of each item on the price input, i am not able to make the function work. i am not sure how to write the string on or if i am even doing the function correctly. can you please help me? thanks!
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Price Calculation</title>
</head>
<body>
<Label>Choose Item</Label>
<select onChange=".......">
<option>Tomatoes</option>
<option>Lettuce</option>
<option>Potato</option>
<option>Carrots</option>
<option>Artichoke</option>
</select>
<br/>
<Label>Price</Label>
<input type="text" id="price" />
<br/>
<script type="text/javascript">
var veggy = new Array ()
veggy ["Tomatoes"] = 5.99
veggy ["Lettuce"] = 7.66
veggy ["Potato"] = 4.52
veggy ["Carrots"] = 2.13
veggy ["Artichoke"] = 10.58
function ()
{
var veggy = document.getElementById("price")
}
</script>
</body>
</html>
<label>must be lowercase. HTML elements don't support capital letters at the beginning. And close your lines in JavaScript with;.