Ver Mensaje Individual
  #5 (permalink)  
Antiguo 09/10/2008, 14:47
Avatar de foreverOdd
foreverOdd
 
Fecha de Ingreso: noviembre-2007
Ubicación: Caracas
Mensajes: 489
Antigüedad: 16 años, 5 meses
Puntos: 14
Respuesta: que permita solo un punto

Trata copn esta funcion a ver

function validar(e) {
tecla = (document.all)?e.keyCode:e.which;
if (tecla==8) return true;
patron = /^\d+\.{0,1}\d+$/;
te = String.fromCharCode(tecla);
return patron.test(te);
}
__________________
My path is lit by my own fire, I only go where I desire