title: Show progress bar in modal dialog using Twitter Bootstrap
body: <p>How do you show a progress bar inside a modal window using twitter bootstrap?
  The screen greys out but the modal dialog is not showing. </p>
  
  <p><strong>JSFiddle</strong></p>
  
  <p><a href="http://jsfiddle.net/jkittell/L0ccmgf2/4/" rel="noreferrer">http://jsfiddle.net/jkittell/L0ccmgf2/4/</a></p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;body&gt;
       &lt;h1&gt;Hello World!&lt;/h1&gt;
  
      &lt;div class="modal hide" id="pleaseWaitDialog" data-backdrop="static" data-keyboard="false"&gt;
          &lt;div class="modal-header"&gt;
               &lt;h1&gt;Processing...&lt;/h1&gt;
  
          &lt;/div&gt;
          &lt;div class="modal-body"&gt;
              &lt;div class="progress progress-striped active"&gt;
                  &lt;div class="bar" style="width: 100%;"&gt;&lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p><strong>JavaScript</strong></p>
  
  <pre><code>$(function () {
      var pleaseWait = $('#pleaseWaitDialog');
  
      showPleaseWait = function () {
          pleaseWait.modal('show');
      };
  
      hidePleaseWait = function () {
          pleaseWait.modal('hide');
      };
  
      showPleaseWait();
  });
  </code></pre>