RobinHerbots / Inputmask

Input Mask plugin
https://robinherbots.github.io/Inputmask/
MIT License
6.39k stars 2.17k forks source link

Skip optional character to next mask part #1057

Open koup opened 8 years ago

koup commented 8 years ago

Hey Robin,

First, great plugin ;)

Here is my mask for a car number like B-GO 1234 or WI-DA 56:

$(".carnumber").inputmask("A[A]-A[A] 99[99]",
                { 
                    casing: "upper",
                    skipOptionalPartCharacter: " "
                });

It is possible to skip the alpha block to the number block when i hitting a number key?

Thanks a lot Mirko

RobinHerbots commented 8 years ago

@koup ,

What do you mean exactly? Should it leave the alpha block as __ in that case?

koup commented 8 years ago

Hello Robin

When I type in a number, I would like to automatically jump to the mask for numbers. I would like to skip the optional letters when I type numbers.

Now understandable?

Thanks