optional character in mask with Jquery maskedInput does not work

6

In a form that I am developing, one of the fields that the user needs to fill is the cell phone, and since some regions of Brazil have 9 digits, I am using the jQuery MaskedInput to format the data entry.

The problem is that when I create the mask $("#celular").mask("(99) 9999-9999?9"); the character ? appears in the input of this form (__) ____-____?_ , which was not to happen.

I used this same formatting on a previous system that worked perfectly, I can not understand why it is not working in this case.

The plugin I'm using is this digitalbush.com/projects/masked-input-plugin Could someone help me?

    
asked by anonymous 20.08.2015 / 14:27

1 answer

1

By your example it was meant to work.

I've worked on several projects and whenever we use a masking plugin, we give preference to link

This I guarantee, and how to use it is very similar, in my opinion is the best!

Hugs I hope I have helped you.

    
25.08.2015 / 16:34