bootstrap-select 单选、多选设置
来源:互联网 发布:seo岗位职责 编辑:程序博客网 时间:2024/05/16 15:02
bootstrap-select 单选、多选设置
- 有multiple属性:多选
- 无multiple属性:单选
单选
<div class="form-group"> <label for="orgId" class="col-sm-3 control-label">所属部门</label> <div class="col-sm-9"> <select class="selectpicker" id="orgId" name="orgId" data-width="100%"> <optgroup label="${organizations[0].orgName}"> <c:forEach var="organization" items="${organizations}" begin="1"> ${organization.hierarchy} <c:if test="${organization.hierarchy == 2}"> </optgroup> <optgroup label="${organization.orgName}"> </c:if> <option value="${organization.id}">${organization.orgName}</option> </c:forEach> </optgroup> </select> </div> </div>
多选
<div class="form-group"> <label for="orgId" class="col-sm-3 control-label">所属部门</label> <div class="col-sm-9"> <select class="selectpicker" multiple id="orgId" name="orgId" data-width="100%"> <optgroup label="${organizations[0].orgName}"> <c:forEach var="organization" items="${organizations}" begin="1"> ${organization.hierarchy} <c:if test="${organization.hierarchy == 2}"> </optgroup> <optgroup label="${organization.orgName}"> </c:if> <option value="${organization.id}">${organization.orgName}</option> </c:forEach> </optgroup> </select> </div> </div>
参考资料:
http://www.kuitao8.com/demo/20140224/1/bootstrap-multiselect-master/index.html
0 0
- bootstrap-select 单选、多选设置
- Bootstrap select多选下拉框赋值
- Bootstrap-select多选下拉框实现
- Bootstrap-select多选下拉框实现
- angular中使用bootstrap-multiselect设置单选选中
- bootstrap 单选/开关控件
- select实现单选和多选
- Bootstrap-select下拉多选获取选中的数据
- select标签中的单选和多选解决办法
- select 元素可创建单选或多选菜单
- JQuery SELECT单选模拟 - jQuery.select.js
- 单选按钮设置
- RadioGroup设置单选
- 设置Listview单选
- Bootstrap-select 多选下拉框(官网的js地址错误)
- bootstrap-select
- bootstrap,select
- Bootstrap多选插件:Bootstrap Multiselect
- 程序
- cocos2dx 资源加载进度显示
- UIscrollVIew代理方法调用时机
- RecycleView之使用心得【1】
- UICollectionView基础
- bootstrap-select 单选、多选设置
- Java实现List<Map<String, Object>> 转Map<Object, Object>
- Android内存优化之OOM
- ListBox多列大图片效果
- iOS plist 数据持久化
- 冒泡法
- 派生类成员的标识与访问
- 由动态代理引起的空指针
- DSP需求平台