I need a javascript I think, so that when someone selects something from a dropdown select box it inserts the corresponding text into the text box near by. For example in the drop down list there are a list of fruits. If you select apple it input £0.30 into the text box, if you select pear it inserts £0.45 etc Any help would be appreciated, I will give rep etc. Thanks
Will this help. Lemme no if it doesnt. <SELECT ONCHANGE="document.all.selItem.value = this.value"> <OPTION VALUE="£0.50"> Apples </OPTION> <OPTION VALUE="£0.45"> Pears </OPTION> <OPTION VALUE="£0.60"> Bananas </OPTION> </SELECT> <INPUT TYPE="text" ID="selItem"> Code (markup):