Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/83.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 加载时自动下拉davidstutz引导multiselect_Jquery_Multi Select_Bootstrap Multiselect - Fatal编程技术网

Jquery 加载时自动下拉davidstutz引导multiselect

Jquery 加载时自动下拉davidstutz引导multiselect,jquery,multi-select,bootstrap-multiselect,Jquery,Multi Select,Bootstrap Multiselect,我使用的select插件是 我通过ajax/jquery加载select字段,效果很好,但我很难让select字段在加载时启动下拉事件 这个插件可以做到这一点吗?在玩了一会儿之后,您可以做如下操作: $('#namehere').multiselect({ onInitialized: function(select, container) { $(container).addClass('open'); } }); 请将您的代码添加到问

我使用的select插件是

我通过ajax/jquery加载select字段,效果很好,但我很难让select字段在加载时启动下拉事件


这个插件可以做到这一点吗?

在玩了一会儿之后,您可以做如下操作:

$('#namehere').multiselect({
        onInitialized: function(select, container) {
            $(container).addClass('open');
        }
});

请将您的代码添加到问题中。这样别人会更容易思考你的问题,你得到有用答案的机会也会增加。