title: Can bootstrap modal dialog overlay another dialog?
body: <pre><code>&lt;button class="btn" onClick="$('#firstModal').modal('show');"&gt;First&lt;/button&gt;
  
  &lt;!-- Modal --&gt;
  &lt;div id="firstModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"&gt;
      &lt;div class="modal-body"&gt;
          &lt;button class="btn" onClick="$('#secondModal').modal('show');"&gt;Second&lt;/button&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;!-- Modal --&gt;
  &lt;div id="secondModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"&gt;
      &lt;div class="modal-body"&gt;
          Some error message goes here.
      &lt;/div&gt;
  &lt;/div&gt; 
  </code></pre>
  
  <p>Everything works fine; the only problem is that first dialog is displayed over the overlay of the second dialog. How can I fix this?</p>
  
  <p>This is how it looks now:
  <a href="https://i.stack.imgur.com/0eVcl.png" rel="noreferrer"><img src="https://i.stack.imgur.com/0eVcl.png" alt="enter image description here"></a></p>
  
  <p>And I want it to look like this:
  <a href="https://i.stack.imgur.com/VbgSP.png" rel="noreferrer"><img src="https://i.stack.imgur.com/VbgSP.png" alt="enter image description here"></a></p>