[jQuery] Problem with jQuery Validation
Hello... this is my code:
$("#form_atividades").validate({
rules: {
ds_atividades: {
required: true,
minlength: 10
},
'hr_inicial[0]': {
required: true
},
'hr_final[0]': {
required: true
}
},
messages: {
ds_atividades: {
required: "É obrigatório preencher a Descrição da Atividade",
minlength: "É obrigatório preencher a Descrição da Atividade com
pelo menos 10 caracteres"
},
"hr_inicial[0]": {
required: "É obrigatório preencher o 1º Horário Inicial dos
Períodos"
},
"hr_final[0]": {
required: "É obrigatório preencher o 1º Horário Final dos
Períodos"
}
}
});
but when I click on the field ds_descricao, it's the following error
in Firebug:
validator is undefined
http://localhost/js/jquery.validate.js
Line 287
Somebody heelp! i must solve this problem with urgency!
Thks a lot for attention... []s