title: Bootstrap MODAL action button not working
body: <p>I work on MVC 5 with Bootstrap. My project have one modal,it’s open click on link, Bellow is my modal syntax,my problem is my footer action button is not working.Under the save button click event I want to <strong>alert</strong>.</p>
  
  <p>target link:</p>
  
  <h2>Heading</h2>
  
  <pre><code>&lt;a href="#" class="btn btn-lg btn-success"
     data-toggle="modal"
     data-target="#basicModal"&gt;Click to open Modal&lt;/a&gt;
  </code></pre>
  
  <p>modal :</p>
  
  <pre><code>&lt;div class="modal fade" id="basicModal" tabindex="-1" role="dialog" aria-labelledby="basicModal" aria-hidden="true"&gt;
      &lt;div class="modal-dialog"&gt;
          &lt;div class="modal-content"&gt;
              &lt;div class="modal-header"&gt;
              &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;&amp;amp;times;&lt;/button&gt;
              &lt;h4 class="modal-title" id="myModalLabel"&gt;Modal title&lt;/h4&gt;
              &lt;/div&gt;
              &lt;div class="modal-body"&gt;
                  &lt;h3&gt;Modal Body&lt;/h3&gt;
              &lt;/div&gt;
              &lt;div class="modal-footer"&gt;
                  &lt;button type="button" id="btnClose" class="btn btn-default" data-dismiss="modal"&gt;Close&lt;/button&gt;
                  &lt;button type="button" id="btnSave" class="btn btn-primary"&gt;Save changes&lt;/button&gt;
          &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>modal script:</p>
  
  <pre><code>@section Scripts {
      &lt;script&gt;
          $(function () {
              $('btnSave').on('click', function (event) {
                  alert();
                  event.preventDefault();
              });
  
          });
  
      &lt;/script&gt;
  }
  </code></pre>