jQuery-Mask-Plugin icon indicating copy to clipboard operation
jQuery-Mask-Plugin copied to clipboard

Issue with 0 sign, wrong mask

Open AizSedaj opened this issue 6 years ago • 2 comments

Browser (and version)?

firefox 71.0

Functional jsfiddle exemplifying your problem:

http://jsfiddle.net/d2p7590b/ $('#phone-field').mask("+380(99)999-99-99", {placeholder: "+380(__)___-__-__"});

Describe the problem depth:

When the number include 0 in decor part, it used for masking too. How to use zero in decor?

AizSedaj avatar Dec 16 '19 12:12 AizSedaj

Também tenho essa dúvida, preciso fixar o zero na máscara.

code-chip avatar May 27 '20 15:05 code-chip

Solved my similar issue like this :

$('input.date').mask(
    '00/00/2Z00', 
    {
        translation: {
            'Z': {
                pattern: /0/,
                fallback: '0',
            },
        },
        placeholder: "__/__/20__"
    }
);

Shagshag avatar Sep 11 '20 13:09 Shagshag