Hi,
I have a an array
var thisform = document.getEle mentById(arg1); // We have the form
var ttlPrice = 0;
var diveType = new Array(); // Company1, Company2, Company3 etc.
diveType[0] = "0";
diveType[1] = {"2400","2500", "2000");
diveType[2] = {"2000","2300", "2800");
diveType[2] = {"2100","2200", "2050");
I used this code when I tested for just 1 column and it worked.
thisform.AdultP rice.value=dive Type[thisform.DiveTy pe.selectedInde x];
ttlPrice = parseInt(thisfo rm.AdultNo.valu e) * parseInt(thisfo rm.AdultPrice.v alue);
thisform.TotalP rice.value = ttlPrice;
Now I have multiple columns How do I just access the individual columns and use that data in the above statement
Thanks Robby
I have a an array
var thisform = document.getEle mentById(arg1); // We have the form
var ttlPrice = 0;
var diveType = new Array(); // Company1, Company2, Company3 etc.
diveType[0] = "0";
diveType[1] = {"2400","2500", "2000");
diveType[2] = {"2000","2300", "2800");
diveType[2] = {"2100","2200", "2050");
I used this code when I tested for just 1 column and it worked.
thisform.AdultP rice.value=dive Type[thisform.DiveTy pe.selectedInde x];
ttlPrice = parseInt(thisfo rm.AdultNo.valu e) * parseInt(thisfo rm.AdultPrice.v alue);
thisform.TotalP rice.value = ttlPrice;
Now I have multiple columns How do I just access the individual columns and use that data in the above statement
Thanks Robby
Comment