Inputmask

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 plugin's site

An inputmask helps the user with the input by ensuring a predefined format. This can be useful for dates, numerics, phone numbers, ...

<!-- Plugin Js -->
<script src="../node_modules/inputmask/dist/inputmask.js"></script>

<!-- Jquery Page Js -->
<script>
$(document).ready(function(){
    $("#example1").inputmask("99-9999999");
    $("#example2").inputmask();
});
</script>
Custom date format: mm/dd/yyyy
Phone number format: (999) 999-9999
Phone number format with placeholder: (999) 999-9999
Mask 9, 99or ... 9999999999
Numeric format
Currency format: € ___.__1.234,56
Custom format: 999.999.999.999
Custom format: _@_