FYI, Your HTML table is messed up, there is some bad code in there somewhere.
For the script all you need is one function:
Code:
function changeText(priceBox,target) {
document.orderform.elements[target].value=textBlocks[priceBox.selectedIndex];
}
and then target your boxes like this:
Code:
<SELECT name="Item1Price" onChange="changeText(this,'Item1Description');">
and use Item2Description, Item3Description, etc in the changeText's sent paramaters... you should also add your total function to the onChange of the dropdowns, so if someone adds a quantity, then changes their mind of what size they want, it calculates it.
Last edited by funkdaddu : 05-09-2006 at 10:15 AM.
|