Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- Кнопка, открывающее модальное окно -->
- <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">
- Открыть модальное окно
- </button>
- <!-- Модальное окно -->
- <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-label="Закрыть">
- <span aria-hidden="true">×</span>
- </button>
- <h4 class="modal-title" id="myModalLabel">Заголовок модального окна</h4>
- </div>
- <div class="modal-body">
- Содержимое модального окна...
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-default" data-dismiss="modal">Закрыть</button>
- <button type="button" class="btn btn-primary">Сохранить изменения</button>
- </div>
- </div>
- </div>
- </div>
- <script>
- $(document).ready(function(){
- $('#myModal').on('shown.bs.modal', function() {
- alert('SHOW');
- })
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement