I made a multiple selector with multiple select
form element and a text input
. I used jQuery toggle()
method to hide and show multiple select item on click to the text input. After showing the multiple selector, visitor can select multiple item with ctrl / cmd / shift key and then i need to hide the multiple select item. I can hide by clicking again to text input.
But i want it to hide automatically when im not working with multiple select item. Im using it twice in same page and using bootstrap. Now i could not find the way to solve it.
here is the source: http://jsfiddle.net/3UE7D/3/
Please help me.