JSFiddle - React, Tailwind, and code Playground
HTML
<div class="div1">A</div>
<div class="div2">B</div>
<div class="div3">C</div>
CSS
div {
width: 100px;
height: 100px;
background-color: #666;
border-color: #333;
border-style: solid;
position: absolute;
line-height: 100px;
text-align:center;
font-size:50px;
}
.div1 {
left: 91px;
top: 66px;
}
.div2 {
left: 132px;
top: 152px;
}
.div3 {
left: 171px;
top: 90px;
}
JavaScript
$('.div1, .div2, .div3').click(function(){
$(this).css('zIndex',200);
$('div').css('zIndex',2);
});