如何在Select2中首先设置占位符而不是默认值<select class = "select2" style = "width:100%" id = "selectme">option value = "oldest"> Person 2</option>
<option value = "oldest"> Pers
我使用的是Yii2的高级模板。每当为select2‘占位符’分配一个值时,小部件就不会显示初始值。只要存在初始值,我就可以使用['placeholder' => $placeholder]并将变量设置为NULL。但是,如果占位符为NULL,并且显示了一个初始值,那么allowClear就不能工作。查看:
use kartik\select2\Sel
我对Javascript、jQuery、Ajax和jSON世界都不熟悉。我需要做的是混合使用SELECT2提供的两个选项$("#e2_2").select2({});加载远程数据
$("#of writing the function to execute the request we use Select2's conven