As you guys can see, I have a drop down menu.
I have a lot of columns, each one has an option to open the menu.
$(\".optionCont\").live(\"click\", fu
Register a one-off handler inside the callback to make sure the next click closes the menu:
$(".optionCont").live("click", function(ev){
$(".dropMenuCont").slideUp();
if($(this).next().css("display") == "none"){
$(this).next().slideDown();
}else{
$(this).next().slideUp();
}
ev.stopPropagation();
$(document).one('click', function() {
$(".dropMenuCont").slideUp();
});
});
See http://jsfiddle.net/alnitak/GcxMs/