【问题标题】:Jquery tabs functionality in dropdown list [closed]下拉列表中的 Jquery 选项卡功能 [关闭]
【发布时间】:2014-06-04 10:43:32
【问题描述】:

如何使用选择框更改 Jquery 选项卡的内容

这里是我尝试过的小提琴链接

Fiddle

【问题讨论】:

标签: jquery jquery-tabs


【解决方案1】:

基于我的answer here

Demo Fiddle
jQuery 代码

function typeres() {
    $('.tabs').hide();
    var e = document.getElementById("tabSelector");
    if (e.options[e.selectedIndex].value == "tabs-1") {
        $('#tabs-1').fadeIn();
    } else if (e.options[e.selectedIndex].value == "tabs-2") {
        $('#tabs-2').fadeIn();
    } else {
        $('#tabs-3').fadeIn();
    }
}  

它不是基于 jQuery UI,它是您想要实现的另一种方法...

【讨论】:

    猜你喜欢
    • 2013-07-20
    • 1970-01-01
    • 1970-01-01
    • 2018-02-21
    • 1970-01-01
    • 2014-06-23
    • 2019-07-13
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多