title: C# - bootstrap Modal not launching on click event
body: <p>I have a view I'm trying to display in a modal after the user clicks a button. </p>
  
  <p>I've used this code in an isolated application with success: </p>
  
  <pre><code>&lt;a @*id="listed"*@ class="btn btn-primary" id="modalEdit" data-toggle="modal" 
  data-target="#editModal"&gt;&lt;i class="fa fa-pencil-square-o"&gt;&lt;/i&gt;Edit&lt;/a&gt;
  
              &lt;div class="modal fade" id="editModal" &gt;
  
                  &lt;div class="modal-dialog"&gt;
  
                      &lt;div class="modal-content"&gt;
  
                          &lt;div class="modal-header"&gt;
                              &lt;div class="modal-title"&gt;Edit Notification&lt;/div&gt;
  
                          &lt;/div&gt;
  
                          &lt;div class="modal-body"&gt;
                              @{
                                  Html.RenderAction("Edit");
                              }
                          &lt;/div&gt;
                      &lt;/div&gt;
  
                  &lt;/div&gt;
  
              &lt;/div&gt;
  </code></pre>
  
  <p>When I use this identical code in my application however, the modal does not open upon button click. <strong><em>Note:</em></strong> the modal button is located between <code>&lt;td&gt;</code> elements in my application. The methods I have tried are as follows:</p>
  
  <ol>
  <li><p><strong>jQuery Method #1</strong></p>
  
  <pre><code>$(document).ready(function () {
   $('#modalEdit').click(function () {
      $('#editModal').modal({
          show: true,
          closeOnEscape: true
      });
    });
  });
  </code></pre></li>
  <li><p><strong>jQuery Method #2</strong></p>
  
  <pre><code>$(document).ready(function () {
   $('#modalEdit').on("click", function () {
      $('#editModal').modal('show')
    });
   });
  </code></pre></li>
  <li><strong>Restore default bootstrap.css file:</strong></li>
  </ol>
  
  <p>I edited this file to override some default bootstrap and thought maybe these customization's were interrupting the default bootstrap modal code but, I restored these defaults and still no success.</p>