Skip to content

Instantly share code, notes, and snippets.

@luislobo14rap
Last active April 11, 2018 21:36
Show Gist options
  • Save luislobo14rap/157e1c0a7cca5d7745bd889e1a883069 to your computer and use it in GitHub Desktop.
Save luislobo14rap/157e1c0a7cca5d7745bd889e1a883069 to your computer and use it in GitHub Desktop.
//jquery-mask-latin-characters
$('input[name="nome"]').mask(
'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',
{translation:{'A':{pattern:/[ \.a-zA-ZÀÁÂÃÄÅàáâãäåÈÉÊËèéêëÌÍÎÏìíîïÒÓÔÕÖòóôõöÙÚÛÜùúûüÇçÑñ]/,optional:true}}}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment