title: Bootstrap Modal without a button prevent default a click
body: <p>I am trying to make modal windows for privacy policy in footer, and not with a button as Bootstrap docs show. I want to use text, (a link), but the # is causing the page to load the page with #. I know there is a prev default that will stop the # from working, but I cannot find it on Google, (at least not that's working for me). </p>
  
  <pre><code>&lt;div class="row" id="footer"&gt;
          &lt;div class="col-md-3 col-md-offset-1"&gt;
            &amp;copy; &lt;?php echo date('Y'); ?&gt; &lt;a href="#"&gt;Galaxy Guitar&lt;/a&gt; All Rights Reserved 
          &lt;/div&gt;&lt;!-- /col-md-3 --&gt;
          &lt;div class="col-md-3 col-md-offset-5"&gt;
            &lt;a href="#" class="md-trigger" onclick="$('#privacyModal').modal('show')"&gt;Privacy Policy&lt;/a&gt;  
            &lt;a href="#"&gt;Terms and Conditions&lt;/a&gt;
          &lt;/div&gt;&lt;!-- /col-md-3 --&gt;
  
        &lt;/div&gt;&lt;!-- /footer --&gt;
  
  
  
  
      &lt;/div&gt;&lt;!-- container wrapper --&gt;
  
  &lt;!-- Modal Window (Privacy Policy) --&gt;
  &lt;!-- Modal --&gt;
  &lt;div class="modal fade" id="#privacyModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" 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;times;&lt;/button&gt;
          &lt;h4 class="modal-title" id="myModalLabel"&gt;Privacy Policy&lt;/h4&gt;
        &lt;/div&gt;
        &lt;div class="modal-body"&gt;
          Our privacy policy is.....
        &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;button type="button" class="btn btn-primary"&gt;Save changes&lt;/button&gt;
        &lt;/div&gt;
      &lt;/div&gt;&lt;!-- /.modal-content --&gt;
    &lt;/div&gt;&lt;!-- /.modal-dialog --&gt;
  &lt;/div&gt;&lt;!-- /.modal --&gt;
  </code></pre>