I use masked input plugin, but it forbid enter spaces. * - Represents an alphanumeric character (A-Z,a-z,0-9), but not allow space-symbol
In case if you use http://github.com/RobinHerbots/jquery.inputmask , you can create your own mask:
$.extend($.inputmask.defaults.definitions, {
'A': {
validator: "[A-Za-z0-9 ]",
cardinality: 1
}
});
$("#field").inputmask("AAA");
If you use http://plugins.jquery.com/maskedinput/ , you create you mask like this:
$.mask.definitions['A'] = "[A-Za-z0-9 ]";
$("#field").mask("AAA");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With