单选按钮引导面板不工作
Radio Button Bootstrap Panel not working
http://jsfiddle.net/um7m89hp/10/
<div class="piGal pull-right">
Some image or <br />
images will go <br />
over here.
</div>
<div class="panel-group pull-left" id="products">
<div class="panel panel-default">
<div class="panel-heading" data-toggle="collapse" data-parent="#products" href="#partnumber1">
<h4 class="panel-title">
<div>
<input type="radio" name="specs">
Some Product Title #1<br />
Some Product Subtitle
</div>
</h4>
</div>
<div id="partnumber1" class="panel-collapse collapse">
<div class="list-group">
<ul class="list-group">
<li class="list-group-item">Some product data</li>
<li class="list-group-item">Some product data</li>
</ul>
</div>
</div>
<div class="panel-heading" data-toggle="collapse" data-parent="#products" href="#partnumber2">
<h4 class="panel-title">
<div>
<input type="radio" name="specs">
Some Product Title #2 <br />
Some Product Subtitle
</div>
</h4>
</div>
<div id="partnumber2" class="panel-collapse collapse">
<div class="list-group">
<ul class="list-group">
<li class="list-group-item">Some product data</li>
<li class="list-group-item">Some product data</li>
</ul>
</div>
</div>
</div>
</div>
单选按钮仅在单击面板中的文本时进行检查。如果直接单击单选按钮本身或在边界空间中,它将激活面板,但不会选中单选按钮。在这个问题上有什么帮助吗?我试图将单选按钮放在面板文本的一侧,以保持格式。
shown
事件的信息。
$(".panel-collapse").on("shown.bs.collapse", function(event) {
//travel up the DOM to the heading and check the radio
$(this).prev('.panel-heading').find('input').prop("checked", true);
});
小提琴在这儿:http://jsfiddle.net/um7m89hp/16/
相关文章:
- Spring WebFlow2 Javascript只在第一个单选按钮上工作
- 选中的单选按钮在jQuery模式对话框中不能正常工作
- 得到"标签“;标签在Internet Explorer 6中工作(用于单选按钮)
- 如何检查我的单选按钮是否已选中并且循环是否正常工作
- 如何使单选按钮工作两个任务
- 选择任何一个单选按钮后,单选按钮选项卡焦点无法正常工作
- 如果我有两个选项的代码,单选按钮的结果将无法正常工作
- AngularJS ng-repeat,两个单选按钮无法正常工作
- 引导 3 个单选按钮到按钮 ASP.NET MVC 下无法完全正常工作
- 在 IE8 中单选按钮上更改无法正常工作
- 如果语句不能在 Javascript 单选按钮上正常工作
- 单选按钮示例不工作
- jQuery Mobile-Accordion中的链接和单选按钮不工作
- 单选按钮引导面板不工作
- Angularjs.吴重复.单选按钮组没有'工作不正常
- 单选按钮onchange/onclick事件无法正常工作
- 角度方向的单选按钮不工作
- 需要选中取消选中,然后选中单选按钮才能工作
- 单选按钮的 OnChange 事件处理程序(输入类型=“单选”)不能作为一个值工作
- 为什么addEventListener不工作的单选按钮's焦点事件在Chrome