
16/01/2009, 07:56
|
| | Fecha de Ingreso: noviembre-2008
Mensajes: 36
Antigüedad: 16 años, 4 meses Puntos: 0 | |
Respuesta: Duda: textbox que acepte solo numeros entonces la funcion seria algo asi
function soloNumeros(evt)
{
tecla = (document.all) ? e.keyCode : e.which;
if (tecla==8) return true;
patron =/\d/;
te = String.fromCharCode(tecla);
return patron.test(te);
}
no? a ver si funciona |