隐藏点击菜单

$(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();
})

posted @ 2014-03-18 20:57  一语惊醒他爹我  阅读(85)  评论(0)    收藏  举报