Default empty select option selected

Hi Folks,

I want a select2 dropdown with default empty option selected . But when I click on the dropdown it should not show the empty option. How to achieve this.

Try a custom render template function that returns null for the empty option, and the item text for all other options. That should prevent the empty option from displaying in the dropdown.