Hi there,
I have written the following javascript which works perfectly in IE but doesn't work in Firefox, I believe it this is due to passing in two variable into the function.
Can anybody shed any light?
function optionPrice(checked, value) {
if (checked == true){
document.FrmAdd.vehicleOpCost.value = parseInt(document.FrmAdd.vehicleOpCost.value) + parseInt(value) ;
document.FrmAdd.ExtrasCount.value = parseInt(document.FrmAdd.ExtrasCount.value) + 1;
}
else{
document.FrmAdd.vehicleOpCost.value -= value;
document.FrmAdd.ExtrasCount.value = parseInt(document.FrmAdd.ExtrasCount.new_val) - 1;
}
}
I have written the following javascript which works perfectly in IE but doesn't work in Firefox, I believe it this is due to passing in two variable into the function.
Can anybody shed any light?
function optionPrice(checked, value) {
if (checked == true){
document.FrmAdd.vehicleOpCost.value = parseInt(document.FrmAdd.vehicleOpCost.value) + parseInt(value) ;
document.FrmAdd.ExtrasCount.value = parseInt(document.FrmAdd.ExtrasCount.value) + 1;
}
else{
document.FrmAdd.vehicleOpCost.value -= value;
document.FrmAdd.ExtrasCount.value = parseInt(document.FrmAdd.ExtrasCount.new_val) - 1;
}
}