jquery: function doesn't work from external page
<p>I have a page that loads external html from the same domain, this(external) html page has another jquery code that for some reason refuse to work. </p>

<p>the page:</p>

<pre><code>$("#success").click(function () {     
$(this).load("testpage.html", function(response, status, xhr)
...
</code></pre>

<p>external
testpage.html:</p>

<pre><code>&lt;div id="hidediv"&gt;
&lt;a id="hidelinks" href="#"&gt;hide&lt;/a&gt; &lt;br /&gt;
text &lt;br /&gt;
&lt;/div&gt;

&lt;script&gt;
$('#hidelinks').click(function() {
    $('#hidediv').slideUp();
});
&lt;/script&gt;
</code></pre>
