• Resolved Marlimant

    (@marlimant)


    Hello: Could you tell me how can I mask a field in order to show all its content in uppercase (not using CSS)?

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Marlimant

    (@marlimant)

    I tried with `<script type=”text/javascript”>
    jQuery(document).ready(function($){$(“input.myuppercasefield”).mask(“>*”, {reverse: true});});
    </script>` but without results.

    Plugin Author Ivan Petermann

    (@ivanpetermann)

    Hi @marlimant,

    Try with the code below.

    
    <script type="text/javascript">
    jQuery(document).ready(function($){
        $("input.myuppercasefield").on("keypress, keydown, keyup", function (e) { 
            $(this).val($(this).val().toUpperCase());
        });
    });
    </script>
    
    Thread Starter Marlimant

    (@marlimant)

    Work like a charm, thank you so much.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Uppercase field’ is closed to new replies.