Check click target using jQuery

$(document).click(function(event){     
	$target = $(event.target);
	if(!$target.closest('.div-content').length){
		alert('outside');
	}else{
		alert('inside');
	}
});