[jQuery] exclude children from selected elements

[jQuery] exclude children from selected elements


Hi,
I want to apply a mouseover event on all elements but one and its
children. I can't use class name to filter. How can I do it ? I've
tried unsuccessfully :
$("*:not(#main)").not($("#main").children()).mouseover(function() {
});
thanks