remove "search icon" from select2.min.js

Viewed 37

I am using select2 js library to make my selectbox as searchable. But its showing a search icon on the select2 as well (when expands). I want to hide this "search icon". The image is attached. Note: I used the same library in other project and it was not showing the search icon. I would be grateful if anybody help me to remove the search icon. Thanks enter image description here

The Code is written here:

$('#BchId').select2();
<div>
<select asp-for="BchId" class="form-control" name="BchId" data-parsley-required="true" data-parsley-trigger="change" data-parsley-errors-container="#branch-error" placeholder="Branch"
                                            asp-items="@(@ViewBag.BranchList)">
<option value="">@Resources.PleaseSelectBranch</option>
</select>
<span id="branch-error"></span>
</div>

0 Answers
Related