I want to disable the submit button to validate some fields preventing them from being blank. But there is a catch, as these fields are only displayed according to the selection of a combo.
Eg: Combo qtd of employees (1 to 5) Selecting 1, displays the div containing the fields Name Employee 1 and CPF 1 Selecting 2 displays the div with employee fields 1 and 2. So on.
So it's no use putting a required, because if the user selects 1 the fields Name 5 and CPF 5 are not needed.
Thank you!