I'm trying to calculate some fields using an onchange event. If a field is blank, I want javascript to interpret it as a zero to use in a calculation, but I can't figure out what I'm doing wrong. Here is my function:
function calc(thevalue){
if (thevalue = "" || isNull(thevalue)) {
thevalue == 0
alert(thevalue)
}
}
Thanks!
Start Free Trial