我在BegiCollectionItem
函数中的模态不起作用/没有显示,如何解决此问题?
这是我的代码:
//其他tds在这里
@model SimplyAccounting.Models.TransactionViewModels.JournalDetailsViewModel
@using (Html.BeginCollectionItem("JournalDetailsViewModel"))
{
<td>
<a class="btn btn-sm" role="button" href="#" data-toggle="modal" data-target="#@Model.Guid">Others</a>
<div class="modal fade" id="@Model.Guid" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
//content here
</div>
</div>
</div>
</div>
</td>
<td><button type="button" class="btn btn-sm btn-danger" id="delete" name="delete" value="delete" onclick="javascript: deleteBook(document.getElementById('@Model.Guid'))"><i class="far fa-trash-alt"></i></button></td>
</tr>
}