Tema
:
Evitar numero en input text que funcione en el movil
Ver Mensaje Individual
#
4
(
permalink
)
15/08/2016, 12:48
IsaBelM
Colaborador
Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 16 años, 8 meses
Puntos: 1012
Respuesta: Evitar numero en input text que funcione en el movil
no hace falta buscar. es algo sencillo de hacer
Cita:
function fnc(str) {
if (!/^([\sa-z\xc0-\xff]+)$/i.test(str.value)) {
str.value = str.value.replace(/(.)$/, '');
}
}
<input type="text" onKeyUp="fnc(this)">
__________________
if(ViolenciaDeGénero) {alert('
MUJER ASESINADA
');}
IsaBelM
Ver Perfil
Buscar todos los Mensajes de IsaBelM