0
I want to disable the Submit button to validate some fields preventing them from being empty. But there is a catch, because these fields are only displayed according to the selection of a combo.
Ex. Employee combo Qtd (1 to 5) Selecting 1, displays the div containing the Employee Name 1 and CPF 1 fields Selecting 2, displays the div with employee fields 1 and 2. So on.
So it is no use if I put a required, because if the user selects 1 the Employee Name 5 and CPF 5 fields are not required.
Thank you!
https://api.jquery.com/callbacks.disable/ I think this is it
– Murilo Melo