Ejemplo n.º 1
0
    }
    //保质期正则
    function vdreg() {
        var ValidityDate = $("input[name=ValidityDate]").val();
        var reg = /^(0?[[0-9]|1[0-2])$/;

        if (!reg.test(ValidityDate)) {
            alert('请输入正确月份');
            return false;
        } else {
            return true;
        }
    }
    $(function() {
<?php 
$prices = DealergoodsService::getmaxprice();
?>
        var maxprice =<?php 
echo $prices['maxprice'];
?>
;
        var maxnum =<?php 
echo $prices['maxnum'];
?>
;
        //保修期 显示判断
        $("#ValidityID").change(function() {
            var vtype = $(this).val();
            if (vtype == 3) {
                $('.validityshow').show();
            } else {