title: bootstrap modal keeps opening
body: <p>I'm having some problems with a modal window in bootstrap.</p>
  
  <p>I have a button, and when I click it, it shows a modal window, but when I click the close button, it closes and straight away it opens again, continually, and I can not close it!!!</p>
  
  <p>here is the code:</p>
  
  <h2>html</h2>
  
  <pre><code>&lt;a href=""&gt;
          &lt;span class="chatButtonDetails"&gt;
            &lt;span class="icon-iconOnlyChat"&gt;&lt;/span&gt;
            Chat now
           &lt;div id="chatModal" class="modal fade"&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;times;&lt;/button&gt;
                  &lt;h4 class="modal-title"&gt;Chat Now&lt;/h4&gt;
              &lt;/div&gt;
              &lt;div class="modal-body"&gt;
                  &lt;p&gt;chat chat chat&lt;/p&gt;  
              &lt;/div&gt;
              &lt;div class="modal-footer"&gt;
                  &lt;button type="button" class="btn btn-danger" data-dismiss="modal"&gt;Close&lt;/button&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
          &lt;/span&gt;
        &lt;/a&gt;
  </code></pre>
  
  <h2>js</h2>
  
  <pre><code>$(document).ready(function(){
          $('.chatButtonDetails').click(function() {
           $("#chatModal").modal('show');
           return false;
          });
      });
  </code></pre>
  
  <p>Thank you in advance!!</p>