Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/07/2004, 08:53
Avatar de Holden
Holden
 
Fecha de Ingreso: enero-2002
Ubicación: Buenos Aires
Mensajes: 326
Antigüedad: 23 años
Puntos: 4
hola debería ser algo así:
Código:
if ( ( document.getElementByID('caja1').value ) &&  (document.getElementByID('caja2').value ) ) 
{
   total = parseInt(document.getElementByID('caja1').value)+parseInt(document.getElementByID('caja2').value);

document.getElementByID('caja3').value = total
}
nota1: los elementos imput deben tener el atributo id.
nota2: hay que usar parseInt si los numeros no llevan decimales sino hay que usar parseFloat.

Espero te sea util.
Saludos
__________________
Holden-@r
http://www.hvaldez.com.ar