Home:ALL Converter>Mask a prefilled number with jQuery-Mask-Plugin

Mask a prefilled number with jQuery-Mask-Plugin

Ask Time:2015-07-30T10:03:41         Author:donsalari

Json Formatter

I have a input type=number. I am using the jQuery-Mask-Plugin for masking. It works well when I enter a number.

How do I trigger the mask function if the input field already contains a number?

Currently, if the input already contains a number, the lib does not mask it but as soon as I edit the number, it starts masking.

Author:donsalari,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/31714049/mask-a-prefilled-number-with-jquery-mask-plugin
yy