JQuery issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

Sorry for asking question at wrong place.. (Please tell me where to as
questions about JQuery)
I am using JQuery Validate plugin.
I am validating form which contains two items Name & phone number
Phone number contains three text boxes.
Now the default behavior of JQuery Validate put error message in front of
text boxes. It is ok for Name but,
for phone number i have placed three text boxes in a row. So i want single
message for this after the third text box.
So i did following thing

var form = $("#frm_something")
form.validate({
    submitHandler: function() {
        alert("Valid date range!")
     },
    groups: {
        dateRange: "phone1 phone2 phone3"
    },
    errorPlacement: function(error, element) {
        form.find(".error_container").append(error);
    }
});

with above it is showing all errors in "error_container" span.
I want only date error should come in error_container everything else should
be as it is before (in-front of text boxes)

Please help..

-- 
Devendra Jadhav

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux