Good morning, all...

I'm trying to implement validation using Jorn's Validation plug-in
and every time I click into a form field, then click out, IE 7 locks up.

Everything is working fine in FF (except the Submit button, but that's
an issue for later...)

Does anyone see anything wrong in the code below?

Also, the form is at
http://bodaford.whitestonemedia.com/html/property_search.cfm

The top form is the only one that I'm talking about.  The bottom form was
an earlier version left for referral.  (Maybe that's causing conflict?)

Anyway, here's the code.... Thanks!  Rick

        $.validator.defaults.debug = true;
        $().ready(function() {

                // validate Property Search form fields on blur
                $("#Property_Search_Form").validate({
                
                errorPlacement: function(error, element) {
                  error.appendTo("#" + element.attr('id') + "_error");
              },

                   onInvalid: function(form) {
                       $(form).find("[EMAIL PROTECTED]").attr("disabled",
"disabled");
                   },

                   onValid: function(form) {
                       $(form).find("[EMAIL PROTECTED]").attr("disabled",
"");
                   },


                focusInvalid: "false",
                        
                        event: "blur",
                        
                        rules: {
                                Name: {required: true},
                                Phone: {required: true},
                                Email: {required: true,
                                    email: true},
                           Email_Confirm: {required: true,
                                           equalTo: '#Email'}
                                },

                        messages: {
                                Name: {required: "Please enter your name."},
                                Phone: {required: "Please enter your phone
number."},
                                Email: {required: "Please enter your email
address.",
                                   email: "Please enter a valid email
address."},
                            Email_Confirm: {required: "Please re-enter your
email address.",
                                            equalTo: "This entry must match
your first email address entry."}
                                }
                        })
                });


Reply via email to