I am creating table
#myUL li a {
background-color: #f6f6f6;
padding: 5px;
width: 100%;
text-decoration: none;
font-size: 14px;
color: black;
display: block;
}
#myUL li a.header {
background-color: #e2e2e2;
cursor: default;
}
#myUL li a:hover:not(.header) {
background-color: #eee;
}
<input type="text" id="myInput" list="myUL" onclick="openingList()" onkeyup="openingList()" style="width:90%; ">
<ul id="myUL" hidden=true>
<li>
<a href="#"></a>
</li>
</ul>
On click of input tag is myUL
is opening. Now I implemented this on the top of some box. Now the problem is when I am clicking, myUL
is not displaying fully because it is getting hide because of box. How Can show this always on top.
Note :
- Applying z-index is also not working.
- Typing in input is also not working.
Can anybody help me to fix this.