Hola.. tengo unos cálculos con javascript, pero cuando hay un campo vacío me muestra "NaN". Cómo puedo decir algo como :
if (variable=NaN) {
variable=0;
}
graciass
| ||||
if (isNaN(variable)) { variable = 0; } else { alert(variable)//es numerico } saludos
__________________ Saruman One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them. |