How it works
Inputmask is a javascript library that creates an input mask. Inputmask can run against vanilla javascript, jQuery, and jqlite.. For more info, please visit the https://flatpickr.js.org/, An inputmask helps the user with the input by ensuring a predefined format. This can be useful for dates, numerics, phone numbers, ...
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:
_@_
<!-- Plugin Js -->
<script src="assets/bundles/inputmask.bundle.js"></script>
<!-- Jquery Page Js -->
<script>
$(document).ready(function(){
$("#example1").inputmask("99-9999999");
$("#example2").inputmask();
});
</script>