有朋友用bootstrap table插件做过这样的吗
左边可选,右边显示ID并且是在同一列中。最终效果
只用过datatable 不知道跟你说的是不是一个东西
实现代码如下:
实现代码如下:
<div class=”form-group”>
<label for = “checkbox1” class=”checkbox-inline”>
<input type=”checkbox” id=”checkbox1” value=”0”
onclick="this.value=(this.value==0)?1:0">
1
</label>
</div>
<div class=”form-group”>
<label for = “checkbox2” class=”checkbox-inline”>
<input type=”checkbox” id=”checkbox2” value=”0”
onclick="this.value=(this.value==0)?1:0">
2
</label>
</div>