简体   繁体   中英

How to get empty field with autonumeric.js

I want to be able when I am focused on the field, and I have minimum an maximum limits (1-31), I want to be able to delete all the numbers, but it wont me let it to do that. If I enter 17, I can delete 7 and thats it. I want to be able to delete both digits and to re-enter some others. Currently my setup of autonomueric is:

Version: 1.9.45

    $("#field").autoNumeric({
        vMin: '1',
        vMax: '31',
        aPad: false,
        aSep: ''
    });

You can use following code

 $(".testInput").autoNumeric('init', {
           vMax: '31',
           vMin: '-1',
       aPad: false,
        aSep: ''
        });

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM