【发布时间】:2021-09-06 20:33:18
【问题描述】:
<select type="text" name="user_name" class="form-control select2" style="width: 100%" >
<option></option>
@foreach ($listUser as $items)
<option value="{{$items->full_name}}">{{$items>full_name}}</option>
@endforeach
</select>
<script type="text/javascript">
$(function(){
$('.select2').select2({
placeholder : 'Chọn người dùng',
allowClear: true,
});
})
</script>
- 如何在重新加载页面时显示表单中输入的数据。在select2中
【问题讨论】:
标签: php jquery-select2