【发布时间】:2014-06-04 10:43:32
【问题描述】:
【问题讨论】:
标签: jquery jquery-tabs
【问题讨论】:
标签: jquery jquery-tabs
基于我的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,它是您想要实现的另一种方法...
【讨论】: