3
I’m trying to validate a checkbox
using the plugin http://jqueryvalidation.org/.
The problem is that the field I am validating it does not exist until another preset field is selected. Therefore, the validation passes even without this field.
I couldn’t find a way to make the validation happen even if the field doesn’t exist.
I tried so:
$('#form_novo').validate({
rules: {
'bnd[]': {
required: true
},
'responsavel[]': {
required: true
},
'etapa[]': {
required: true
},
}
This responsible field exists only after the field has been selected bnd
. Does anyone know how to solve?
I can’t, it’s a dynamic field that depends on the choice of bnd
– Daniel Lemes