HTML/CSS Dropdown input onclick not firing
问题 I am trying to implement an search box with dropdown suggestions using CSS/HTML only. It displays fine but I cannot get the onclick event to fire when clicking on a dropdown element and the links don't work either. If I don't hide the list then it works fine, but when hidden and then displayed using the ":focus" selector of the input box it does not react to clicks anymore. Any idea how to fix this? Is this a normal behavior for hidden elements? It is based on this example, and it does not