How can I use custombox plugin to render actions in asp.net mvc?
With modal boostrap, I use the following code, but the same code gives error with custombox:
BUTTON
<a class="btnModal btn btn-primary" href="javascript:;" data-href="@Url.Action("Create")">New</a>
VIEW
<div class="modal fade" id="myModal" tabindex="-1"></div>
JS
$(".btnModal").click(function () {
$("#myModal").load($(this).attr("data-href"));
$("#myModal").modal({
backdrop: 'static',
keyboard: false
});
});
