Are you sure you want to apply it to *all* elements on the page? That
sounds a bit awkward.

var main =  $('#main, #main *');
$('body *').not(main).mouseover(function(){...});

On Nov 20, 2:07 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> 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

Reply via email to