Bootstrap: set initial radio button checked in HTML
问题 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