<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