无线电在Bootstrap下拉列表中

时间:2014-10-11 13:28:19

标签: twitter-bootstrap radio-button

我需要帮助下拉列表。我在那里有收音机,但在选择了下拉菜单后我必须打开它并再次点击其他选项。

或现有更好的解决方案?

在我的情况下,

是发票,我在过去2个月,实际月份,2014年等两种类型中选择。 enter image description here

1 个答案:

答案 0 :(得分:-1)

你需要阻止JS中的默认来阻止Twitter-Bootstrap使用JS关闭它。

$(function(){
    $('.dropdown :radio').bind({
        click: function(e) {
            e.preventDefault();
        }
    });
})
相关问题