jquery 检查 金钱类型

        //检查金钱格式
        $(".text_money").on("blur", function () {
            checkMoney($(this));
        });


    //检查金钱格式
    function checkMoney(text) {
        $(text).val($.isNumeric($(text).val()) ? $(text).val() : 0);
    };

 

posted @ 2016-01-19 16:51  肥大头  阅读(307)  评论(0编辑  收藏  举报