twitter bootstrap - How to make groups of radio buttons act like one group? -


i'm using bootstrap button groups , need make 2 groups of buttons because each group of them closely relate single topic. want both groups of buttons act in same group. how can that?

<div class="btn-toolbar">     <div class="btn-group" data-toggle="buttons-radio">         <button class=btn>a</button>         <button class=btn>b</button>         <button class=btn>c</button>     </div>     <div class="btn-group" data-toggle="buttons-radio">         <button class=btn>d</button>         <button class=btn>e</button>         <button class=btn>f</button>     </div> </div> 

i have these, want allow user select either a, b, c, d, e or f.

fiddle

i have no idea why works...

<div class="btn-toolbar" data-toggle="buttons-radio">     <div class="btn-group">         <button class=btn>a</button>         <button class=btn>b</button>         <button class=btn>c</button>     </div>     <div class="btn-group">         <button class=btn>d</button>         <button class=btn>e</button>         <button class=btn>f</button>    </div> </div> 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -