on-internet
← Community

Select 2 empty value in dropdown

Stack Overflow ·

I want to display option in my dropdown without value, but select 2 prohibits it. <select name="searchcategory[]" multiple="multiple" class="js-example-basic-multiple"> <option value=''>All Category</option> </select> my select2 js $(".js-example-basic-multiple").select2({ placeholder: "Choose category", });

Comments

Sign in or sign up to comment and upvote.

No comments yet.