EjemplosDuoc.es.tl
  Validar según patrón
 
Forma de validar por patrón

$(function()
{
var numeros = '1234567890';
// validación de ingreso (caracteres soportados por cada input)
$('.txtRut').keypress(function(e)
{
var caracter = String.fromCharCode(e.which);
if(numeros.indexOf(caracter) < 0 )
return false;
})
});
 
   
 
Este sitio web fue creado gratuitamente con PaginaWebGratis.es. ¿Quieres tener tu propio sitio web?
Regístrate gratis