referring to my previous question I came accross to another problem. The div I am showing includes links in it. When I click on them, the div disappears as expected but not as desired.. (we want it to disappear whenever we click on anywhere on page... but the links inside them)
the code currently being used:
$.listen('click', '.tabImg', function(event) {
var el = $('#tabs_menu');
var dv = $('.tabImg').parent();
var pos = dv.offset();
$(el).show();
$(el).css( {"position": "absolute", "left": (pos.left) + "px", "top":20 + pos.top + "px" } );
$(document).one('click', function()
{
$(el).slideUp().hide()
});
event.stopPropagation();
});
tabs_menu being the div I am showing with links inside of it...
what is the workaround for this?