Delete Data In ASP.NET MVC using AJAX and POP UP MODAL

preview_player
Показать описание
source code:
For more video please like ,share and subscribe to my channel.

youtube :

instagram :
Рекомендации по теме
Комментарии
Автор

thank you sir for making this videos pls do more realtime concept video's

vivekgedam
Автор

the "onclick()" html attribute doesn't work for me in foreach loop but works fine outside the loop. why?

below code works fine :
<a href="#" onclick="deleting()" >Delete</a>

var deleting = function () {
alert("Alert");
}

but after i add "id" & put it in foreach loop it doesn't work..

@foreach (var item in Model)
{
}

<input type="hidden" id="hiddenfield" />


var deleting = function (csid) {
$("#hiddenfield").val(csid);
$("#modal").show();
}

zaidilyas
welcome to shbcf.ru