$(\'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
$('body').click(function(ev){ if(ev.target.className == 'yourLayerClass') { // Your code here } });