$(\'body\').click(function() { //hide layer code here });
This will hide the layer.
But I don\'t want the layer to be hidden when I click insid
I think the more elegant way is this:
$('body').click(function(event) { // hide layer code here }); $('#layer').click(function(event) { event.stopPropagation(); });