selector wildcard [solved]

selector wildcard [solved]

Hello,
I would very much appreciate some help. If I wanted to, for example, hide all divs that have the word "foo" in the name I would use a wildcard like so:
$("div[@name*=foo]").hide();


Can anyone tell me how I would go about hiding divs that don't have the word "foo" in the name?? I can't seem to find an answer to this..

Many thanks
Paul