jquery validate array input not working
$('[name^="reg_number"]').each(function() {
$(this).rules('add', {
required: true,
minlength: 2,
messages: {
required: "Enter Reg Number",
minlength: "Enter at least {0} characters",
}
})
});