I tried to create something like modal
, like this:
.try-modal{
position: absolute;
top:35%;
left:25%;
right: 25%;
width: 50%;
height: 400px;
background-color: white;
z-index: 2;
}
I call <div class="try-modal">
with Jquery
, so far so good. But now I wanted the back, after this "modal" to appear, what was in the background would be kind of dark as if it were the bootstrap
modal. Is there any code or tricks to do this?