I'm using Bootstrap's JavaScript buttons to style some radio buttons, and I don't seem to be able to set an initial button as checked.
Here is my code:
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-info">
<input checked="checked" type="radio" id="match-three" name="options">Three numbers
</label>
<label class="btn btn-info">
<input type="radio" name="options" id="match-four">Four numbers
</label>
</div>
The first button has checked="checked"
, but it isn't being styled as checked.
The buttons are being styled OK after click events, so I'm not sure what is going wrong on initial load.
Bootply version here: http://bootply.com/89566