bootstraptable+iCheck单选框复选框,动态生成复选框和动态初始化选中

这篇博客介绍了如何在BootstrapTable中集成iCheck库,实现动态生成和初始化单选框与复选框的功能。详细内容包括html代码示例,帮助开发者理解如何在表格中创建交互式的选中效果。
摘要由CSDN通过智能技术生成

html代码

 
 
<form id="addUserRoleForm" class="form-horizontal">
                    <div class="form-group">
                        <label for="uName" class="col-sm-2 control-label" style="padding-right: 0">用户名</label>
                        <div class="col-sm-10">
                            <input class="form-control" name="uNmae" id="uName" placeholder="请输入用户名"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="mobile" class="col-sm-2 control-label" style="padding-right: 0">手机号</label>
                        <div class="col-sm-10">
                            <input class="form-control" name="mobile" id="mobile" placeholder="请输入手机号"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="mobile" class="col-sm-2 control-label" style="padding-right: 0">角色</label>
                        <div class="col-sm-10">
                            <div id="roleCheck" class="form-group"></div>
                        </div>
                    </div>
                    <!--尾部-->
                    <div class="modal-footer">
                        <button id="submitUserOfRole" type="submit" class="btn btn-primary">保存</button>
                        <button type
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值