Set initial value for bootstrap checkbox button -
Set initial value for bootstrap checkbox button -
i'm using code below set middle checkbox true it's not working. missing?
for demo go http://jsfiddle.net/5sq7v/
<div class="btn-group" data-toggle="buttons"> <label class="btn btn-default"> <input type="checkbox">hello 1 </label> <label class="btn btn-default"> <input type="checkbox" checked="checked">hello 2 </label> <label class="btn btn-default"> <input type="checkbox">hello 3 </label> </div>
looks missing 'active' class in sec label. looking for?
<div class="btn-group" data-toggle="buttons"> <label class="btn btn-default"> <input type="checkbox">hello 1 </label> <label class="btn btn-default active"> <input type="checkbox" checked="checked">hello 2 </label> <label class="btn btn-default"> <input type="checkbox">hello 3 </label> </div>
twitter-bootstrap button
Comments
Post a Comment