I want a validation on same name array dynamic input textbox.Because Magento data-validate="{required:true}"
is not work on same name so how to validate same name array input validation.I have following html data.How to validate same name in magento 2 ?
<input type="text" name="qty[]" class="input-text" />
<input type="text" name="qty[]" class="input-text" />
<input type="text" name="qty[]" class="input-text" />
Best Answer
To validate name array dynamic input text boxes , You need to mention array input field's index like following.