I have 3 Buttons / checkboxes, if I click on any it gets checked, how do I make all other Buttons uncheck if I click on the current one.
https://jsfiddle.net/DTcHh/31573/
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default btn-lg no-border">
<span id="btnPencil" class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
<input type="checkbox" autocomplete="off">
</label>
<label class="btn btn-default btn-lg no-border">
<span class="glyphicon glyphicon-th-large" aria-hidden="true"></span>
<input type="checkbox" autocomplete="off">
</label>
<label class="btn btn-default btn-lg no-border">
<span class="glyphicon glyphicon-th-large" aria-hidden="true"></span>
<input type="checkbox" autocomplete="off">
</label>
</div>
btnp = document.getElementById(btnPencil)
btnp.addEventListener('change', function() {
// 1. check current button / checkbox
// 2. uncheck other buttons / checkbox
// bootstrap uncheck / check style ?
});