Trying to set data-live-search to select-picker
问题 selectpicker $('.selectpicker').selectpicker(); $("#s1").addClass("btn-sm"); //set to current value$("#s1").selectpicker('val', picker[0]["f_name"]); $("#s1").selectpicker("refresh"); select picker css <div id="input1" style="margin-bottom: 50px"> <div class="pull-left" style="width: 250px;"> <select class="selectpicker" data-live-search="true" id="s1"> </select> This is my code. I want to set a search in my select picker. What should I do? 回答1: <div class="live-search" > <select class=