Hi,
Thanks for helping advance.
I have to save multiple values at once in that at least one value should be entered
and i want to show one message for all in a container .
in mvc view the name is generating like this AddVm[].AttributeValue .
i am able to put validation but its generating for all but i want only one message
that should be in one container.
$.each($('.licenseattributevalreq'), function () {
$(this).rules('add', {
require_from_group: [1, '.licenseattributevalreq'], messages: { require_from_group :"Please fill atlease one Attribute Value."}
});
});
if ($('.licenseattributevalreq').valid() == false) {return false; };
its working properly
What I have tried:
$.each($('.licenseattributevalreq'), function () {
$(this).rules('add', {
require_from_group: [1, '.licenseattributevalreq'], messages: { require_from_group :"Please fill atlease one Attribute Value."}
});
});
if ($('.licenseattributevalreq').valid() == false) {return false; };