我有代码
$.ajax('@Url.Action("Surface", "Data")', { async: true, data: { side: i, StartCountForSurface: StartCountForSurface, EndCountForSurface: EndCountForSurface, IsEdit: "true" } })
.success(function(e) {
$("#InsertPartial" + i + "").before(e);
CalculationAS();
////отключение валидации
}).error(function(e) {
alert(e);
});
当我设置async:false时,出现错误Uncaught TypeError:无法读取属性'设置'查询验证插件中未定义的
更新
javascript代码
$("[identificationforcountside]").each(function(ind, element) {
$(element)[0].value = ArrayOfSides[ind].length;
AddSurface(ind+1); <---ajax is here
});