Atmos
Search…
Masked Input
Masked input plugin extends formatting of user input for better representation while inputs for inputs like numbers, telephone, currency etc.

Step 1

Include JavaScript before end of body tag
1
<script src="assets/vendor/jquery.mask/jquery.mask.min.js"></script>
Copied!

Step 2

Add markup with data parameters. use data-mask for formatting
1
<input type="text" name="field-name" class="form-control" data-mask="00/00/0000" data-mask-clearifnotmatch="true" placeholder="00/00/0000"/>
Copied!
Last modified 3yr ago
Copy link
Contents