Html-код:
Код: Выделить всё
[i]
@Model.UsersList[i].Username
@Model.UsersList[i].Email
@Model.UsersList[i].FirstName
@Model.UsersList[i].LastName
@{
if (!Model.UsersList[i].IsDeleted)
{
Active
}
else
{
Deleted
}
}
[/i]
[url=#]Freeze[/url]
[url=@Url.Action(]Edit[/url]
[url=@Url.Action(]Add License[/url]
Код: Выделить всё
$(document).ready(function () {
$(".delete").click(function () {
var userId = $(this).data('userId');
var userName = $(this).data('username');
$("#userDataDelete").text("Username: " + userName);
$("#userIdDelete").val(userId);
$("#usernameDelete").val(userName);
});
});
$(function () {
$('#detailModal').modal({
keyboard: true,
backdrop: "static",
show: false,
}).on('show', function () {
var getIdFromRow = $(event.target).closest('tr').data('id');
});
});
Подробнее здесь: https://stackoverflow.com/questions/782 ... is-clicked