简体   繁体   English

如何在引导程序上创建多选下拉列表?

[英]How to create multiselect dropdown on bootstrap?

I'm coding js app that parse some data and show it to users in table that generated by js. 我正在编码js应用程序,该应用程序解析一些数据并将其显示在js生成的表中给用户。 So i need to give to user dropdown list or something like that to choose fields that will be used to generate this table. 所以我需要给用户下拉列表或类似的东西,以选择将用于生成此表的字段。 Are there any simple way to make this? 有没有简单的方法可以做到这一点? I've only found http://davidstutz.github.io/bootstrap-multiselect/ https://silviomoreto.github.io/bootstrap-select/examples/ 我只找到了http://davidstutz.github.io/bootstrap-multiselect/ https://silviomoreto.github.io/bootstrap-select/examples/

But it's just dropdown select list! 但这只是下拉选择列表! why i have to include jquery and thousand another scripts? 为什么我必须包含jquery和其他数千个脚本?

So, tell me pls simplest way to create multiselect tool. 因此,请告诉我创建多重选择工具的最简单方法。 I cant imagine, that simpliest way - ugly checkbox :) 我无法想象,最简单的方法-丑陋的复选框:)

The basic one: 基本的:

<select multiple>
    <option>Option 1</option>
    <option>Option 2</option>
    <option>Option 3</option>
</select>

Hold ctrl to select multiple 按住Ctrl可选择多个

selfanswere. selfanswere。

<input type="checkbox" id="bla"><label for="bla">

css - checbox visible false CSS-复选框可见false

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM