简体   繁体   中英

autoNumeric JS text field get cleared after focus out

I use autoNumeric js for thousand separation, after entering the value and focus out to another field entered value erased. what will be the reason? I have used the following code.

jQuery("#job_no").autoNumeric('init', {
            aSep: '.',
            aDec: ',',
            aForm: true,
            vMax: '9999999',
            vMin: '-999999'
        });

The version you are using looks pretty old and is not supported anymore, since the jQuery dependency has been dropped in v4.0.0 .

You should try the latest stable v4.1.0 with was released today, with a fix for input that got cleared on blur on Android Chrome.

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