Validation and masked input for numeric amounts

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10038099
    hidroxid
    Participant

    Hello

    I need to have an input and validation mask for numeric amounts.

    The objective is that the mask group separates the units of thousand and the decimals.

    Try the following code but it didn’t work.

    <input class=”form-control” id=”c_depmto” name=”c_depmto” data-plugin-masked-input data-input-mask=”999,999,999,999.99″ placeholder=”1,234,567.89″ required>

    All the values are required and it is not correct, the mask is only for the grouping but not to demand all the digits.

    How should i do?


    #10038107
    Support
    Keymaster

    Hello, the mask works perfectly for fixed number, such as phone, zipcode, etc… In that case you mentioned you need to format the numbers on keyup, so please use the following JS code:

    http://jsfiddle.net/fXrv2/

    Regards,

    Jonas


    #10038349
    hidroxid
    Participant
    This reply has been marked as private.
Viewing 3 posts - 1 through 3 (of 3 total)

This topic is marked as "RESOLVED" and can not rceive new replies.