点击其他位置隐藏某个元素

点击该元素以外的元素隐藏该元素

$('.add_course').click(function(e){
	$('.add_kccon ul').toggle();
  		e.stopPropagation();
})
$(document).click(function(){ 
   	$(".add_kccon ul").hide(); 
   }) 

猜你喜欢

转载自blog.csdn.net/qq_43053533/article/details/105631763