You can set the text to display in the error message.  I did it so
that the test displayed is empty strings.

$("#registerForm").validate({
                errorContainer: "#messageBox",
                errorClass: "required",
                rules: {
                        "reg_email": {
                                required: true,
                                email: true
                        },
                        "reg_pwd": "required",
                } ,
                messages: {
                        "reg_email": "",
                        "reg_pwd": "",
                }
        })



On May 4, 6:08 am, Feryt <skoru...@gmail.com> wrote:
> Actually, it does not work.
> Validation plugu-in overrides "display:none" css attribute with its
> own "display:inline".
>
> Feryt.
>
> On 11 Dub, 16:15, Chuck Harmston <cpharms...@gmail.com> wrote:
>
>
>
> > I don't recommend this, as it will stop users from submitting the form
> > without giving them a reason for it. Talk about a usability nightmare.
> > However, if you insist on it, there is a simple enough solution: just use
> > CSS to style the .error class:
>
> > label.error{display:none}
>
> > Chuck Harmstonhttp://chuckharmston.com
>
> > On Fri, Apr 10, 2009 at 10:08 PM, Rick <r...@marketingease.com> wrote:
>
> > > I'm using this plugin in its simplest form..
> > >http://docs.jquery.com/Plugins/Validation
>
> > > All I have is this for my code:
>
> > > <script>
> > > $(document).ready(function(){
> > >        $("#form").validate();
> > > });
> > > </script>
>
> > > It works fine, but I'm trying to hide the error messages which it
> > > defaults to "This field is required." The error message shows up in a
> > > label..
>
> > > How in the world do I hide those error messages within those labels???
> > > I'm sure it's easy, but I cannot find any examples anywhere!!
>
> > > Thanks to whoever helps out..- Hide quoted text -
>
> - Show quoted text -

Reply via email to