@model Sampleapplication.Models.samplemodel
|
|
|
|
|---|
I need help in adding row dynamically on ajax success
Row should contain only one column as dropdown other columns as td
success: function (data) {$.each(data, function (i, item) {var rows = ""+ "" + item.Id + ""+ "" + item.Name + ""+ "@Html.ListBoxFor(m => m.sDepartmentList, Model.lstToDepartment, new { Name = "Departmentlst", id = "Departmentlst", @placeholder = "Select Deaprtment" })"+ "";$('#tabledetails tbody').append(rows);
};
monisha sampathPosted Sep 25, 2021, 6:17 AM
Since I need to add two more columns before the dropdown column on ajax success Id and Name (normal td cells) Department(dropdown)
Id and name values also need to added through ajax success
Any ways to add these three columns together on ajax success ?
Sachin SinghPosted Sep 24, 2021, 7:36 PM