SOFTMOA TECHNOLOGY

[ bootstrap ] bootstrap modal multi modal wheel and focus not work

소프트모아가 정리한 기술 기록입니다.

Contents
작성일 2016. 05. 30.
$('.modal').on("hidden.bs.modal", function (e) {
   if($('.modal:visible').length)
   {
       $('.modal-backdrop').first().css('z-index', parseInt($('.modal:visible').last().css('z-index')) - 10);
       $('body').addClass('modal-open');
   }
}).on("show.bs.modal", function (e) {
   if($('.modal:visible').length)
   {
       $('.modal-backdrop.in').first().css('z-index', parseInt($('.modal:visible').last().css('z-index')) + 10);
       $(this).css('z-index', parseInt($('.modal-backdrop.in').first().css('z-index')) + 10);
   }
});
Share this

FrontEnd

Have a questions?

견적 및 기술문의

mobile : 010-7931-4813

Contact Form