I am trying to implement a checked state for group checkboxes in Bootstrap 3.0.2. documentation
This is the HTML code snippet:
<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>
However, the data-toggle="button"
does not seem to be working correctly. Here is the jsfiddle link for reference.
Any suggestions on how to resolve this issue? Thank you.