i found a function on this site, that i have modified to suit my requirements and is now working correctly in firefox, but in internet explorer it slowly returns 0.00
[CODE]/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Jay Rumsey | http://www.nova.edu/~rumsey/ */
function UpdateCost() {
var sum = 0;
var num = 0;
var gn, elem, qn, qty;
for (i=1; i<6; i++) {
gn = ‘w’+i;
qn = ‘q’+i;
elem = document.getElementById(gn);
qty = document.getElementById(qn);
num = qty.value
if (num == ‘Quantity’) {num = 0; }
document.getElementById(‘Phone bus’).value = num;
if (elem.checked == true) { sum += (Number(elem.value) * Number(num)); }
num = 0;
}
document.getElementById(‘Phone ah’).value = sum.toFixed(2);
the idea is to get the value, of the quantity from the select list, for the checked items
i am really new to js and this is just the first part of the script, which has taken a while to get working
**oh and the target ids are not the end result, just much easier to see when testing, probably bad form design
any suggestions to why it does not work in internet explorer, and how to fix
thx pete