Skip to content

Instantly share code, notes, and snippets.

@epexa
Created August 17, 2018 07:32
Show Gist options
  • Save epexa/bdc2ece128ae233c56b9381b6bcb4097 to your computer and use it in GitHub Desktop.
Save epexa/bdc2ece128ae233c56b9381b6bcb4097 to your computer and use it in GitHub Desktop.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
<div class="modal" id="first-modal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<p>First modal</p>
<button class="btn btn-success" onclick="$('#second-modal').modal('show');">Open second modal</button>
</div>
</div>
</div>
</div>
<div class="modal" id="second-modal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<p>Second modal</p>
<button class="btn btn-success" onclick="$('#third-modal').modal('show');">Open third modal</button>
</div>
</div>
</div>
</div>
<div class="modal" id="third-modal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<p>Third modal</p>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script>
<script>
$('#first-modal').modal('show');
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment