Currently, I am working on creating a dropdown menu that includes a text box. The goal is for the items to appear when the text box is clicked, and for the selected item to turn green once clicked and then display in the text box. I'm interested in finding a solution where clicking on the item in the search box would deselect it (turning it unselected or ungreen). How can I detect the click event on the element name within the text box?