I want to remove underline from masked input implemented using jQuery inputmask plugin- http://github.com/RobinHerbots/jquery.inputmask
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": ""});
You can specify the placeholder (by default _) like this:
$(document).ready(function(){
$("#date").inputmask("d/m/y",{ "placeholder": "dd/mm/yyyy" });
});
The placeholder can also be a single character, in that case it is repeated for the whole length of your input.
$(document).ready(function(){
$("#code").inputmask("aaaa",{ "placeholder": "*" });
});
So to remove it you specify an empty placeholder like:
$(document).ready(function(){
$("#noplaceholder").inputmask("aaaa",{ "placeholder": "" });
});
You can also use data-placeholder="" and initialize just like that. Regards
P.D: I'm using Jasny : http://www.jasny.net/bootstrap/javascript/#inputmask-examples
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With