javascriptjqueryjquery-inputmask

How to remove underline from jQuery input mask plugin textboxes


I want to remove underline from masked input implemented using jQuery inputmask plugin- http://github.com/RobinHerbots/jquery.inputmask enter image description here


Solution

  • To remove the mask, use the placeholder option. Assigning an empty string to placeholder, removes the mask. You can assign the placeholder when creating the mask:

    $('input').inputmask("mask name", {"placeholder": ""});
    

    Or change it afterwards:

    $('input').inputmask({"placeholder": ""});