I'm trying to validate a checkbox
using the link plugin.
The problem occurs that the field I'm validating does not exist until another predetermined field is selected. Therefore, validation passes even though this field does not exist.
I did not get a way to make validation happen even though the field does not exist.
I tried this way:
$('#form_novo').validate({
rules: {
'bnd[]': {
required: true
},
'responsavel[]': {
required: true
},
'etapa[]': {
required: true
},
}
This responsible field only exists after the bnd
field is selected. Does anyone know how to solve it?