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

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -