javascript - How to create a mask for jQuery Masked Input Plugin that allow alphanumeric, spaces and accented characters? -


how create mask jquery masked input plugin allow alphanumeric, spaces , accented characters?

i have

$.mask.definitions["a"] = "[a-za-z0-9 ]"; $("#input").mask("a?aaaaaaa"); 

but doesn't include accented characters.

you can following masking support alphanumeric , space.

jquery('.alphanumeric-field').mask('z',{translation:  {'z': {pattern: /[a-za-z0-9 ]/, recursive: true}}}); 

Popular posts from this blog