vitalets/x-editable

Phone number mask

Closed this issue · 0 comments

Hi, I try to put INPUT MASK to a text input. I need a phone number mask (999) 999-9999 but when I try something that I see on previous topic, I only get a loading circle.....

Can you help me please,

Here the code:

`

Téléphone:

<a href="#" id="telephone" data-type="text" data-pk="" data-url="/--------/handlers/--------.php" data-title="Numéro principal">

`

Script side:

$.fn.editable.defaults.mode = 'inline';

        $('#prenom, #famille, #adresse, #telephone, #telephone_t, #courriel, #courriel2').editable({
            emptytext : "Vide"
        });

I have, too, input mask JS library loaded.

Thnx for help