I'm trying to exclude one block from my jquery selection.
I have the following html structure:
<div id="center">
...
<div id="menu>
<!-- menu -->
</div>
...
</div>
Now I want to select all elements from #center except for the menu. That's why my jquery look like this:
$("#center").not("#menu")....
But this seems to select exactly the same as
$("#center")....
I also tried
$("#center:not(#menu)")....
And this also gave me the same result. So how can I select all elements from a div without a certain div?