Edit link with bootstrap modal

Feb 11, 2015 at 6:42 AM
I'm using MVC 4 and Entity Framework and Grid.MVC] for datagrid.
I have tried to implement a modal dialog to edit records using bootstrap.
When i click edit, modal window does not appear.

Heres my code for modal:

You can download my sapmple project here: <><><><><>
<!-- Modal -->
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h3 id="myModalLabel">Modal header</h3>
    <div class="modal-body">
    <div class="modal-footer">
        <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
        <button class="btn btn-primary">Save changes</button>
    //this script reset modal each time when you click on the link:
    $(function () {
        $(".modal-link").click(function (event) {
            $('#myModal').modal({ remote: $(this).attr("href") });