This can also be solved by providing a higher z-index value for the drop-down div and a smaller z-index for each div that falls under it and displays the text.
Example:
<div id="sbHolder_28376079" class="sbHolder" tabindex="0"> ... </div> <div class="div1"> <div class="div2"> <div class="div3"> </div> </div> </div> .sbHolder{z-index : 100;} .div1{z-index : 90;} .div2{z-index : 80;} .div3{z-index : 70;}
This applies to the same logic that was mentioned above in js, but it violated my Ui in another part where absolute position and z-index were used.
source share