I'm looking for a way to do this :
$('*:not(#specific)').on('click',function(e){
//execute code
});
//or :
$('*').not('#specific').on('click',function(e){
//execute code
});
To apply an action on every elements of the DOM but not on my specific div and childs.
But none of thems seems to work.
Basically, I try to set up a system like firebug who can apply an outline to the last children of the over element (this part is ok). But after keep the outline on the element select and open a dialog box. But the dialog box who appears when we click on a DOM element is also a part of this DOM which generate an infinite loop of events. I cannot use my dialog box properly.
Thanks anyway