• Resolved levke21

    (@levke21)


    Hello,

    In function code which character corrects the position of the letters? I know that the “0” replace the numbers. Thanks!

    function custom_masks_form_fields() {
    ?>
    <script type=”text/javascript”>
    jQuery(document).ready(function($){
    //$(“input[name=’input_name’]”).mask(‘(000) 000-0000’);
    $(“input.class_name”).mask(‘GWH0000-00000000’);
    });
    </script>
    <?php
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter levke21

    (@levke21)

    In function code which character corrects the position of the any characters? Thank you.

    • This reply was modified 4 years ago by levke21.
    Plugin Author Ivan Petermann

    (@ivanpetermann)

    Hi @levke21

    Default translation:

    ‘0’: {pattern: /\d/}, // (Numbers)
    ‘9’: {pattern: /\d/, optional: true}, // (Optional Numbers)
    ‘#’: {pattern: /\d/, recursive: true}, // (Recursive Numbers)
    ‘A’: {pattern: /[a-zA-Z0-9]/}, // (Alphanumeric, Letters and Numbers)
    ‘S’: {pattern: /[a-zA-Z]/} // (Letters only)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Alphanumeric + number caracter mask’ is closed to new replies.