我想在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按鈕單擊 –