Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function validaTexto(texto)
- {
- !(/^[A-zÑñ0-9]*$/i).test(texto.value) ? texto.value = texto.value.replace(/[^A-zÑñ0-9]/ig, '') : null;
- }
- !(/[^A-zÑñ0-9 ,.;]*$/i)
- function validaTexto(texto) {
- texto.value.replace(/[^a-zñ0-9 ,.;]/ig, '');
- }
- function validaTexto(texto) {
- texto.value.replace(/[^A-z0-9 ,.;]/ig, '');
- }
Add Comment
Please, Sign In to add comment