ajax Code:
$('.remove-item').click(function () {
var iddata = $(this).attr("data");
var confirmation = confirm("are you sure?");
if (confirmation == true) {
$.ajax({
type: 'POST',
url: "@Url.Action("_Delete","Item")",
data: { Id: iddata },
ajaxasync: true,
success: function (data) {
alert(data);
$('.wrap').html(data);
},
error: function () {
alert("error");
}
});
}
});
Basically after first succesfull attempt to call this ajax, I'm refreshing/replacing partial view with (data)
and when I try to delete item from list that is in data.. nothing is happening
I don't know what info is neede yet for this.