if I give index in input array then only required working other validation not working
<input type="text" name="batch_no[0]">
<input type="text" name="batch_no[0]">
$( "#batch-form" ).each( function() {
$(this).validate({
rules: {
"batch_no[]": {
required: true,
minlength: 5,
maxlength: 20,
alphanumeric: true
}
},
});
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>