$(obj).focusout(function(){
next = $(this).next();
nextLi = next.children();
for(var i = 0; i < nextLi.length;
i++){
if(nextLi.eq(i).is(":hover")){
nextLi.eq(i).click();
return true;
}
}
active = next.children(‘.active‘);
next.hide();
})
原文:http://www.cnblogs.com/wudixiaotie/p/3608697.html