What's the reason why some JavaScript functions won't work in Google Chrome but works fine in Mozilla Firefox?
Like this..
HTML code:
...
onkeyup="calculateTotal(this.value)"
onclick="clickclear(this, '0')" onblur="clickrecall(this,'0')" value="0"
JS code:
function calculateTotal(price, quantity, cnt) {
if(quantity != ""){
var totalAmt = parseInt(document.getElementById('total['+cnt+']').value);
totalAmt = parseInt(quantity) * parseInt(price);
document.getElementById('total['+cnt+']').value = totalAmt;
document.getElementById('indicator').value++;
}
else{
document.getElementById('total['+cnt+']').value = 0;
document.getElementById('indicator').value--;
}
}
And already included this:
jquery1.4.2.js