Answers for "how to disable autonumeric js"

0

how to disable autonumeric js

$('form').submit(function(){
    var form = $(this);
    $('input').each(function(i){
        var self = $(this);
        try{
            var v = self.autoNumeric('get');
            self.autoNumeric('destroy');
            self.val(v);
        }catch(err){
            console.log("Not an autonumeric field: " + self.attr("name"));
        }
    });
    return true;
});
Posted by: Guest on March-13-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language