Is there a click listener for the select tag? How to call the select tag and show a dropdown list? Like here here
function myFunction(obj) {
var dropdown= document.getElementById("dropdown");
dropdown.click(); ???
}
<div class="dropdown">
<input type="text" onkeyup="myFunction()"/>
<select id="dropdown" onchange="this.previousElementSibling.value=this.value; this.previousElementSibling.focus()">
<option>1</option>
<option>2</option>
<option>3</option>
</select>
</div>
source
share