29 Nov 20161 minute to read

It can be done using MaskEdit Textbox control. When you define an input mask using the data-ej-mask attribute, each character position in the Mask Edit control maps to either a placeholder of a specified type or a literal character.

Refer to the following code example.

  • HTML
  • <input id="textbox_sample" data-role="ejmmaskedit" data-ej-watermarktext="Maskedit" data-ej-mask="+1 (999) 999-9999" />