我想在MVC上点击ActionLink来打开使用引导程序的弹出窗口。这里是我的代码 -mvc中的Bootstrap Popup
@Html.ActionLink("Create New", "Bootstrap", null, new { @class = ".mymodal" })
@using (Html.BeginForm())
{
<div class="modal fade mymodal">
<div class="modal-dialog">
<div class="modal-content">
//Next lines of code
</div>
</div>
</div>
}
但弹出不会打开。那么鉴于其对按钮的点击打开如下─
<a class="btn btn-success" data-toggle="modal" data-target=".mymodal"> <span class="glyphicon glyphicon-eye-open"></span>View</a>
锚标记你尝试过这个http://stackoverflow.com/questions/24017306/jquery-open-popup-on-bu tton-click-for-bootstrap –
我觉得你没有明白我的观点。我想打开弹出单击ActionLink NOT ON按钮单击 –