你好!
我想要的效果应该是:点击dt,显示对应的dd,并隐藏其他的dd吧···
$("dt").click(function(){
$("dt").siblings("dd").hide();
$(this).siblings("dd").show();
});
$(document).ready(function(){
$("dt").live('click',function(){
$(this).next('dd').css('display','block');
});
});
单击dt显示dd?
$(dt).click(function(){
$(this).siblings('dd').show();
})