On 26 Lis, 18:33, ricardobeat <[EMAIL PROTECTED]> wrote:
> You can add elements to a jQuery object simply using
>
> $('originalobject').add('#someid').add('.someclass').add($
> ('anotherobject')).add(node);
>
Thanks for your help.
This is what I needed to do:
$(function() {
$.extend({
validation: {
invalidFields: $([]),
}
}
);
$.fn.extend({
setValidationError: function() {
for (var i = 0, len =
this.length; i < len; i++) {
$.validation.invalidFields = $.validation.invalidFields.add
(this[i]);
}
},
removeValidationError:
function() {
for (var i = 0, len =
this.length; i < len; i++) {
$.validation.invalidFields = $.validation.invalidFields.not
(this[i]);
}
}
});
});
--
regards,
takeshin