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. 

the page:

```
$("#success").click(function () {     
$(this).load("testpage.html", function(response, status, xhr)
...

```

external
testpage.html:

```
<div id="hidediv">
<a id="hidelinks" href="#">hide</a> <br />
text <br />
</div>

<script>
$('#hidelinks').click(function() {
    $('#hidediv').slideUp();
});
</script>

```