Ericson Willians
Ericson Willians

Reputation: 7845

How can I add a fixed string to an imask field?

In the documentation we have the following example:

var phoneMask = IMask(
  document.getElementById('phone-mask'), {
    mask: '+{7}(000)000-00-00'
});

I know I can fix characters using {}, but I'm struggling to do this:

[email protected]

Adding the custom characters in the 'x' places. Is it possible?

Upvotes: 1

Views: 108

Answers (0)

Related Questions