给定下面的代码。如何将每个选项按钮创建为同一个按钮单选组的一部分?
<div class="row">
<div class="plan-option span3 well">
<h3 class="plan-option-title">Product Name</h3>
<div class="plan-pricing">
<p class="plan-price">$x<span class="small"> one-time</span></p>
<div class="signup-btn">
<button type="button" class="btn-large btn-block btn" >select</button>
</div>
</div>
</div>
<div class="plan-option span3 well">
<h3 class="plan-option-title">Product Name</h3>
<div class="plan-pricing">
<p class="plan-price">$x<span class="small"> one-time</span></p>
<div class="signup-btn">
<button type="button" class="btn-large btn-block btn" >select</button>
</div>
</div>
</div>
<div class="plan-option span3 well">
<h3 class="plan-option-title">Product Name</h3>
<div class="plan-pricing">
<p class="plan-price">$x<span class="small"> one-time</span></p>
<div class="signup-btn">
<button type="button" class="btn-large btn-block btn" >select</button>
</div>
</div>
</div>
<div class="plan-option span3 well">
<h3 class="plan-option-title">Product Name</h3>
<div class="plan-pricing">
<p class="plan-price">$x<span class="small"> one-time</span></p>
<div class="signup-btn">
<button type="button" class="btn-large btn-block btn" >select</button>
</div>
</div>
</div>
</div>
我尝试将所有内容包装在 btn-group div 中,但这不起作用。我也尝试将 data-toggle="buttons-radio" 添加到每个按钮,但这不起作用。
目标是为只有一个按钮处于活动状态的计划提供一个选择器按钮。这是否必须使用自定义 jquery 来完成,或者可以通过 twitter bootstrap 中的按钮组和按钮收音机来完成?