我需要把我的Model.ID到AJAX輔助像下面剃刀語法在Ajax.BeginForm選項
@model Modulerica13.Models.HrMapTrainingPerson
@using (Ajax.BeginForm("updateTrainingPerson", new AjaxOptions
{
UpdateTargetId = "viewTrainingPerson",
HttpMethod = "POST",
InsertionMode = InsertionMode.Replace,
OnSuccess = "$('#editPersonModal').modal('hide')",
}
))
我想補充Model.ID同時選擇DIV。
OnSuccess = "$('#[email protected](Model.Id)').modal('hide')",
我收到sytnax錯誤。