[jQuery] Plugins/Validation/Validator/addMethod
I've post other 2 related with this issue.
I'm more like a newbie in javascript and jquery.
I've found this esample in the validate plugin based on form multipart
validation that i've found usefull for many situations.
Then i change the accordion structure because of ui1.7 css diferences
as the sample in the ui site (based on div),but this code give me
problems:
$.validator.addMethod("pageRequired", function(value, element) {
var $element = $(element)
function match(index) {
return current == index && $(element).parents("#sf" + (index +
1)).length;
}
if (match(0) || match(1) || match(2)) {
return !this.optional(element);
}
return "dependency-mismatch";
}, $.validator.messages.required)
it has to do with a ul>li structure .
The problem is that i can't create aa accordion base on a list, just
on div like the samples in ui site.
please see this example
http://d61628.tinf28.tuganet.info/132/test2.htm
on the other and i have a structured accordion on div's and that
function dont work(validate just the elements on the page andnot all
the elements)
http://d61628.tinf28.tuganet.info/132/test1.htm
thank you , this is very important for me and i'm realy stuck on this.