I am trying to make a select2 search box visible if the values in a HTML drodown match a value. Following is my code snippet. Somehow, the Select2 dropdown is always shown.