How to remove underline from jQuery input mask plugin textboxes

nickalchemist picture nickalchemist · Sep 21, 2015 · Viewed 20k times · Source

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

Answer

Ori Drori picture Ori Drori · Sep 21, 2015

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": ""});