delete the item on search box if clicked. : I am trying to built a dropdown menu with a text box.When the text box is clicked the items appear and when the items are clicked they turn green(selected) and show up in the text box. 
I was wondering if there was a way in which i could just click the item on the search box and the item gets unselected(ungreen). How can i capture the click on the element name in the text box.!.[enter image description here][1]


  [1]: http://i.stack.imgur.com/YKEOQ.png