0

i'm wondering is there any possiblity to mask input to be showing something like this -> " _ _ _ _ _ _ " where single " _ " is a place to type character.

So the final result when user is typing should look similar to this " t y p _ _ _ "

Thanks for help!

-- i tryied to do this by maskedinput, but when i allow to type special characters and whitespace in regex ([0-9a-zA-ąłóżźćę ?]*/) it does not work well.

Sergiu Dumitriu
  • 11,455
  • 3
  • 39
  • 62

1 Answers1

0

Well, just did a quick search for "mask input jquery plugin" in Google and this is what it came up first result masked-input-plugin. Seems like that is what you're looking for.

EDIT:

If you're indeed using this plugin then this should work:

$input.mask('999999');
elclanrs
  • 92,861
  • 21
  • 134
  • 171
  • This is almost definitely the plugin that the OP says he was using. – Wesley Murch Apr 14 '12 at 22:45
  • Well, that's why I updated the answer. I must've skiped that part or OP edited the question. – elclanrs Apr 14 '12 at 23:01
  • Ok might be since OP did not put it as an update, I did not knew. But anyways your edit will only allow numbers to be typed not alphabetic characters. Check this out [link](http://digitalbush.com/projects/masked-input-plugin/#demo) – Ravi Kadaboina Apr 14 '12 at 23:13