Ver Mensaje Individual
  #6 (permalink)  
Antiguo 27/11/2009, 10:53
Avatar de David
David
Moderador
 
Fecha de Ingreso: abril-2005
Ubicación: In this planet
Mensajes: 15.720
Antigüedad: 19 años, 9 meses
Puntos: 839
Respuesta: ingresar solo numeros

Otra opción sería:
Código Javascript:
Ver original
  1. function Num(evento){
  2.     var key = evento.which || evento.keyCode;
  3.     return (key <= 8 || key <= 13 || (key >= 48 && key <= 57) || (key == 45));
  4. }
__________________
Por favor, antes de preguntar, revisa la Guía para realizar preguntas.