you can use this
<div class="btn-group" data-toggle="buttons-radio"> <%= f.radio_button :brand, "ABC", :id=>"first", :style=>"display:none;" %> <label for="first" class="btn btn-primary">First</label> <%= f.radio_button :brand, "PQR", :id=>"second", :style=>"display:none;" %> <label for="second" class="btn btn-primary">Second</label> <%= f.radio_button :brand, "MNO", :id=>"third", :style=>"display:none;" %> <label for="third" class="btn btn-primary">Third</label> </div>
here you need to provide an identifier for the radio exchange and assign a label to it using the attribute in the tag tag. So that he can indicate the appropriate switch.
bunty
source share