<select class="form-control selectpicker" id="specialty_id" data-live-search="true" tabindex="-98" name="specialty_id" >
<option selected="" value="0" id="ee" <?php if(isset($_GET['sp_id']) && $_GET['sp_id'] == 0): ?>{{ 'selected="selected"' }} <?php endif; ?>>Choose a Sp</option>
@foreach($searchdropdown['dsp'] as $dsptext)
<option value="{{ $dsptext->spect }}" <?php if(isset($_GET['sp_id']) && $_GET['sp_id'] == $dsptext->spect): ?>{{ 'selected="selected"' }} <?php endif; ?>>{{ $spdata->sp }}</option>
@endforeach
</select>
我怎樣才能添加佔位符的選擇框是輸入文本。該文本框是動態生成的。我研究了這個,但無法找到任何有用的內容。請幫助我。
例如:參考此鏈接 https://silviomoreto.github.io/bootstrap-select/examples/#live-search
這是你要搜索的內容? http://stackoverflow.com/questions/5805059/how-do-i-make-a-placeholder-for-a-select-box – Roman
不,我經歷過,但在我的情況下,有可編輯的文本框。 @Roman – Mohammed
您的代碼與您發佈的鏈接的示例相同嗎? – Roman