$(".manage_input").click(function(e) {
//父div绑定点击事件
e = e || window.event;
var target = e.srcElement || e.target;
//获取点击对象 if($(target).parent().attr('class')!='manage_wen'&&target.tagName!='LABLE'){
//排除点击子div的情况
var jes=$(this).find("div:first").attr('style');
if(jes=='display:none'||typeof(jes) == "undefined"){
//父div的当前状态
$(this).find("i").removeClass('man-im').addClass("man-in");
$(this).find("div:first").attr('style','display:block')
return true;
}else{
$(this).find("i").removeClass('man-in').addClass("man-im");
$(this).find("div:first").attr('style','display:none')
}
}
})
转载于:https://blog.51cto.com/10992653/1753568