jQuery - Unable to filter links of a div
<p>I want to select all internal links, which are in my document, but not that which are in a special div.</p>

<p>Following shows an example of my site layout:</p>

<pre><code>&lt;div id="toppanel"&gt;
    &lt;a href="test.php"&gt;Test&lt;/a&gt;
&lt;/div&gt;
&lt;div id="page"&gt;
    &lt;div id="content"&gt;&lt;/div&gt;
    &lt;div id="menu"&gt;
        &lt;a href="menu1.php"&gt;Menu1&lt;a&gt;
        &lt;a href="menu2.php"&gt;Menu2&lt;a&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;div id="footer"&gt;
    &lt;ul&gt;
        &lt;li&gt;&lt;a href="index.php"&gt;Startseite&lt;/a&gt;&lt;/li&gt;
        &lt;li class="sep"&gt;|&lt;/li&gt;
        &lt;li&gt;Datenschutz&lt;/li&gt;
        &lt;li class="sep"&gt;|&lt;/li&gt;
        &lt;li&gt;Impressum&lt;/li&gt;
    &lt;/ul&gt;
&lt;/div&gt;  
</code></pre>

<p>My jQuery code is following:</p>

<pre><code>$("a[target!='_blank']").not('#toppanel').live("click", function(event) {
    event.preventDefault();

    var href = $(this).attr('href');
    $.get(href, function(data) {
         $('#content').html(data);
    });
});
</code></pre>

<p>The problem is that with this none of the links are working. If I use the jQuery code without the not() statement, all links working correct, but also that one in the #toppanel-div, which I want to prevent, because that links are used in another way.</p>
