打开select2的永久下拉列表 [英] Open the drop down list permanently of select2

查看:123
本文介绍了打开select2的永久下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用select2进行多个值选择。我需要永久显示下拉列表。

I'm using select2 for multiple value selection. I need to display the drop down list permanently.

现在,当我们选择或单击select2的输入框时,会显示下拉列表。我想知道是否有任何方法可以随时显示列表。

Right now when we select or click the input box of select2, the drop down list is displayed. I'd like to know if there is any way we can always show the list.

推荐答案

从select2文档中,这里

From the select2 documentation, here:

    $("#select").select2({
            closeOnSelect: false
    });

这篇关于打开select2的永久下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆