My idea is to mix two inputs one for user input and second for autocomplete popup.
.ibox {
position:relative;
width:200px;
height:30px;
}
#i1 {
position:absolute;
left:0;
top:0;
bottom:0;
width: 100px;
z-index:20;
}
#i0 {
position:absolute;
left:0;
top:0;
bottom:0;
width: 200px;
background: gray;
z-index:10;
}
<form autocomplete="on">
Email: <div class="ibox">
<input type="email" id="i0" name="email">
<input type="email" id="i1" name="email">
</div>
<br>
</form>
Click on input and you should see autocomplete popup.
General questions:
- How to prevent autocomplete popup on white input but leave on gray?
- How to force gray input autocomplete popup when white input clicked or some characters was entered? I want hide gray input and use it for autocomplete popup only.