📜  jquery 验证数组输入不起作用 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:05.244000             🧑  作者: Mango

代码示例1
$('[name^="reg_number"]').each(function() {
    $(this).rules('add', {
        required: true,
        minlength: 2,
        messages: {
            required: "Enter Reg Number",
            minlength: "Enter at least {0} characters",
        }
    })
});