if condtion is false page should not post and it is working proper but if condition is true page should post..this is not working
$("#category").on('submit', function (event) {
var url = '@Url.Action("CheckCategory_Name", "CategoryAndSubCategory")';
$.getJSON(url, { Category1: Category1, Category2: Category2, Category3: Category3, Category4: Category4, Category5: Category5 }, function (data) {
debugger;
if (data.isDuplicate == true)
{
swal("The Category Name Is Already Exist");
return false;
}
});


Dr.Ajay KashyapRank #2,900 · 496 reputationPosted Feb 9, 2017, 11:37 PM EST
Hassan Uddin MughalRank #2,508 · 560 reputationPosted Feb 9, 2017, 7:00 AM EST
Manas MohapatraRank #182 · 13.2K reputationPosted Feb 9, 2017, 8:35 PM EST
Dr.Ajay KashyapRank #2,900 · 496 reputationPosted Feb 9, 2017, 10:54 PM EST
Dr.Ajay KashyapRank #2,900 · 496 reputationPosted Feb 9, 2017, 10:56 PM EST
Amit KumarRank #459 · 5.4K reputationPosted Feb 9, 2017, 11:23 PM EST
Dr.Ajay KashyapRank #2,900 · 496 reputationPosted Feb 9, 2017, 11:37 PM EST
Dr.Ajay KashyapRank #2,900 · 496 reputationPosted Feb 9, 2017, 11:41 PM EST