
09/10/2008, 14:47
|
 | | | Fecha de Ingreso: noviembre-2007 Ubicación: Caracas
Mensajes: 489
Antigüedad: 17 años, 3 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 |