Ver Mensaje Individual
  #11 (permalink)  
Antiguo 28/10/2008, 02:17
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 3 meses
Puntos: 772
Respuesta: Si numero negativo cambio de color en caja de texto

Hola chemita59

Prueba así:

Código javascript:
Ver original
  1. function rojo_1(obj){
  2. if (parseInt(obj.value) < 0) {
  3. obj.style.color = "#ff0000"
  4. }

Saludos,