Author Topic: How can i add masking to restring invalid input like imask  (Read 2679 times)

mailsrikanta

  • Newbie
  • *
  • Posts: 8
    • View Profile
How can i add masking to restring invalid input like imask
« on: March 31, 2014, 11:55:55 am »
How can i add masking to restring invalid input like imask

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: How can i add masking to restring invalid input like imask
« Reply #1 on: March 31, 2014, 12:22:01 pm »
Append this markup (taken from iMask documentation)  to ui.$cell in editor callback function

Code: [Select]
<input class="iMask" id="myId" name="myId" type="text" 
            value="15357595X" 
            alt="{ 
                type:'fixed', 
                mask:'[99.999.999-x]', 
                stripMask: true 
            }" 
        />