title: Display Bootstrap Modal using javascript onClick
body: <p>I need to be able to open a Twitter bootstrap modal window using the <code>onClick=""</code> or similar function. Just need the code to go into the <code>onClick=""</code>. I am trying to make a click-able <code>div</code> to open the modal.</p>
  
  <p>Code Excerpts:</p>
  
  <p><strong>Div Code:</strong></p>
  
  <pre><code>&lt;div class="span4 proj-div" onClick="open('GSCCModal');"&gt;
  </code></pre>
  
  <p><strong>Modal Div Code:</strong></p>
  
  <pre><code>&lt;div id="GSCCModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"&gt;
  </code></pre>
  
  <p><strong>Javascript:</strong></p>
  
  <pre><code>function open(x){
      $(x).modal('show');
  }
  </code></pre>