I am trying to create a combo using datalist.
This is my div element. Where I am trying to place comboBox. But When I click on the arrow as I given in input or this drop down is not opening.
<div id="chart_line" style="position: relative;">
<input type="text" id="myInput" onclick="myFunction()" onkeyup="myFunction()" style="width:30%;">
<div id="triggers">
<img class="trigger" onclick="deleteValue()" src="css/clearT.png" id="cross">
<img class="trigger" src="css/combo_arrow.png" id="arrow">
</div>
<datalist id="myUL">
<option value="United State"/>
<option value="United Kingdom"/>
<option value="Afghanistan"/>
<option value="Aland Islands"/>
<option value="Albania"/>
<option value="United State"/>
<option value="United Kingdom"/>
<option value="Afghanistan"/>
<option value="Aland Islands"/>
<option value="Albania"/>
<option value="undefined"/>
</datalist>
</div>
Here is my JS Fiddle. Fiddle