2010-07-12 42 views

回答

1

你可以去这样的事情:

$('div').hover(function(){ 
    if ($(this).attr('id') === 'parentdiv') { 
    $('div#childdiv').hide(); 
    } 
}); 
+0

嘿囊,感谢您的快速答复,但它并不塞梅为我工作...我”已经评论过我的代码... – eric 2010-07-12 10:03:20

1
$("div#parentdiv").hover(function() { 
    $("div:child").hide("slow", function() { 
    // use callee so don't have to name the function 
    $(this).prev().hide("slow", arguments.callee); 
    }); 
});