$.ajax({
url: '@Url.Action("AddNewBranch", "BranchAPI", new { httproute = "" })',
type: "POST",
data: JSON.stringify(branchDetail),
contentType: "application/json;charset=utf-8",
success: function (result) {
if (result == "Success") {
addNewBranchModal();
}
else if (result == "fail") {
alert("2nd"); //after this i want to enable @Html.ValidationMessageFor
};
},
error: function (e) {
alert(e);
}

Manas MohapatraRank #182 · 13.2K reputationPosted Nov 29, 2016, 3:05 AM EST
Manas MohapatraRank #182 · 13.2K reputationPosted Nov 29, 2016, 8:07 PM EST
Ajaykumar Singh69 reputationPosted Nov 29, 2016, 7:14 PM EST
means i have manually check field field is empty or not and then show messages?
Ajaykumar Singh69 reputationPosted Nov 30, 2016, 7:03 PM EST
thank you Manas for useful reply