Inputmask is a javascript library that creates an input mask. Inputmask can run against vanilla javascript, jQuery, and jqlite.View more
<!-- HTML -->
<input class="form-control form-control-lg" id="inputmask_date" inputmode="text">
<!-- JavaScript -->
<script >
// Date
Inputmask({ "mask" : "99/99/9999" }).mask("#inputmask_date");
</script>
Custom date format:
mm/dd/yyyy
Phone number format:
(999) 999-9999
Phone number format with placeholder:
(999) 999-9999
Mask
9
,
99
or ...
9999999999
Numeric format
Currency format:
€ ___.__1.234,56
Custom format:
999.999.999.999
Custom format:
_@_