Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

238
Views
why data-inputmask is not working : npmjs

I am trying to apply phone number masking. I followed this Documentation and did everything but still, phone masking is not working.

enter image description here

Below is the code.

var template = '\
<div class="contactItem">\
                    <label style="padding:6px" >Home phone</label>\
                    <input class="form-control" type="text" data-inputmask="\'mask\': \'999-99-9999\'" /> \
                    </div>\
                </div>\
';

self.dialog = puDialogV2.showDialog($('.body-content'), 'Add Contact', template, self, self.addContact, self.cancelSaveContact);

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Looks like you are following the "via data-inputmask attribute" option in documentation. Most probably you are missing the second part of it. Try adding below code to your javascript part.

$(document).ready(function(){
  // $(":input").inputmask();
  // or
  Inputmask().mask(document.querySelectorAll("input"));
});
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!