I am facing an issue with my script where I need to make a div close only after clicking on a link, instead of anywhere outside the div.
$(function() {
$('#hidden').hide().click(function(e) {
e.stopPropagation();
});
$("a").click(function(e) {
$('#hidden').animate({ opacity: "toggle" });
e.stopPropagation();
});
$(document).click(function() {
$('#hidden').fadeOut();
});
});