also be sure you don't have two or more elements with the same id or
anything like that as that will mess up the validation as well


On Jul 10, 9:22 am, "Natkeeran L.K." <natkee...@gmail.com> wrote:
> Hi Evan:
>
> Make sure that you include the path to the jquery.validate.js
> correctly.  Or try it by including it directly from the jquery
> library.
> <script type="text/javascript" src="http://dev.jquery.com/view/trunk/
> plugins/validate/jquery.validate.js"></script>
>
> Regards,
> Nat
>
> On Jul 9, 2:38 pm, Ivan Augusto <gatodom...@gmail.com> wrote:
>
> > 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 undefinedhttp://localhost/js/jquery.validate.js
> > Line 287
>
> > Somebody heelp! i must solve this problem with urgency!
>
> > Thks a lot for attention... []s
>
>

Reply via email to