Say there are some elements floating around, and I\'m trying to do some when I click ANYTHING(divs, body, whatever...) but the one specified (e.g. div#special).
I\'m
you need to do different binds, there is no need to process all this clicks in one function
$('body').bind('click', function(e){
bodyClickEvent();
});
$('div.floating').bind('click',function(e){
elementClickEvent(this);
e.stopPropagation(); //prevents bodyClickEvent
});
$('div#special').bind('click', function(){
e.stopPropagation(); //prevents bodyClickEvent
});