我想在Bootstrap 3.0.2中为组chexbox提供一个检查状态.文档
HTML:
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default">
<input type="checkbox" name="123" data-toggle="button"> <span class="glyphicon glyphicon-star"></span> 123
</label>
<label class="btn btn-default">
<input type="checkbox" name="456"> <span class="glyphicon glyphicon-star-empty"></span> 456
</label>
</div>
Run Code Online (Sandbox Code Playgroud)
但data-toggle="button"不起作用.的jsfiddle
怎么解决?谢谢.