namely buttons-radio

    1 answer 1

    The buttons are connected by data-toggle, and the btn-group style can be simply removed.

    <div data-toggle="buttons-radio"> <button type="button" class="btn">Left</button> <button type="button" class="btn active">Middle</button> <button type="button" class="btn">Right</button> </div> 
    • Thanks It works :). And how to make one button be the default in the pressed states? - Ashimbaev Yaskhan
    • Add an active class to the desired button, in the example the default is Middle - iofjuupasli