title: Bootstrap table with Button to Modal
body: <p>I have a bootstrap table, and two buttons within the table. The buttons will open separate modals. The issue is the the layout of the table and the columns get misplaced when i make the buttons open modals.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" /&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"&gt;&lt;/script&gt;
  
  &lt;table class="table table-condensed"&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;th&gt;EX 1&lt;/th&gt;
        &lt;th&gt;EX 2&lt;/th&gt;
        &lt;th&gt;EX 3&lt;/th&gt;
        &lt;th&gt;EX 4&lt;/th&gt;
        &lt;th&gt;EX 5&lt;/th&gt;
        &lt;th&gt;EX 6&lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
      &lt;tr&gt;
        &lt;td&gt;1&lt;/td&gt;
        &lt;td&gt;Dummy Text&lt;/td&gt;
        &lt;td&gt;Dummy Text 2&lt;/td&gt;
        &lt;td&gt;Dummy Text 3&lt;/td&gt;
        &lt;td&gt;
          &lt;div class="container"&gt;
            &lt;button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal"&gt;Modal 1&lt;/button&gt;
  
            &lt;!-- Modal --&gt;
            &lt;div class="modal fade" id="myModal" role="dialog"&gt;
              &lt;div class="modal-dialog"&gt;
  
                &lt;!-- Modal content--&gt;
                &lt;div class="modal-content"&gt;
                  &lt;div class="modal-header"&gt;
                    &lt;button type="button" class="close" data-dismiss="modal"&gt;&amp;times;&lt;/button&gt;
                    &lt;h4 class="modal-title"&gt;Modal Title Example&lt;/h4&gt;
                  &lt;/div&gt;
                  &lt;div class="modal-body"&gt;
                    &lt;p&gt;Testing 1 &lt;/p&gt;
                    &lt;p&gt;Testing 2 &lt;/p&gt;
                    &lt;p&gt;Testing 3 &lt;/p&gt;
  
  
                  &lt;/div&gt;
                  &lt;div class="modal-footer"&gt;
                    &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Close&lt;/button&gt;
                  &lt;/div&gt;
                &lt;/div&gt;
  
              &lt;/div&gt;
            &lt;/div&gt;
  
          &lt;/div&gt;
        &lt;/td&gt;
        &lt;td&gt;
          &lt;div class="container"&gt;
            &lt;!--&lt;h2&gt;Modal Example&lt;/h2&gt;--&gt;
            &lt;!-- Trigger the modal with a button --&gt;
            &lt;button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModalTwo"&gt;Modal 2&lt;/button&gt;
  
            &lt;!-- Modal --&gt;
            &lt;div class="modal fade" id="myModalTwo" role="dialog"&gt;
              &lt;div class="modal-dialog"&gt;
  
                &lt;!-- Modal content--&gt;
                &lt;div class="modal-content"&gt;
                  &lt;div class="modal-header"&gt;
                    &lt;button type="button" class="close" data-dismiss="modal"&gt;&amp;times;&lt;/button&gt;
                    &lt;h4 class="modal-title"&gt;Modal Title 2&lt;/h4&gt;
                  &lt;/div&gt;
                  &lt;div class="modal-body"&gt;
                    &lt;p&gt;Testing 4 &lt;/p&gt;
                    &lt;p&gt;Testing 4 &lt;/p&gt;
  
  
                  &lt;/div&gt;
                  &lt;div class="modal-footer"&gt;
                    &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Close&lt;/button&gt;
                  &lt;/div&gt;
                &lt;/div&gt;
  
              &lt;/div&gt;
            &lt;/div&gt;
  
          &lt;/div&gt;
        &lt;/td&gt;
  
      &lt;/tr&gt;
  &lt;/table&gt;</code></pre>
  </div>
  </div>
  </p>