Ver Mensaje Individual
  #8 (permalink)  
Antiguo 13/11/2009, 12:03
dfmex
 
Fecha de Ingreso: octubre-2008
Mensajes: 147
Antigüedad: 15 años, 7 meses
Puntos: 3
Respuesta: Problema con input Text...

M... le puse así:

Código:
    if (tecla == 8) { return true; }
    else if (tecla==9) {return true; }
Y no me funcionó... normalmente en PHP haría algo así:

Código:
    if (tecla == 8 || tecla == 9) { return true; }
Pero tampoco funcionó...

¿Cómo indico la condición OR o AND en un IF en JavaScript??