Here's the code.

        $("#createEvent").validate({
                rules: {
                        title: {
                                lettersonly: true,
                                required: true
                        }
                },
                messages: {
                        title: "Enter a valid title!"
                },
                errorPlacement: function(error, element){
                                error.insertAfter(element);
                                $('<br />').insertAfter(element);
                }
        });

The id of the field is id="title", of course. Two thing, however. The
errors never clear out, even if the parameters are true. I used the
same format for another site, and it worked properly, so I copied the
code and changed what I needed to change. It still never works.

I have the same form for editing things, with the same names and
everything, but with that form, the Validation doesn't work at all. It
doesn't even give me errors when it should.

Please.Help.Thankyou.

Reply via email to