[jQuery] Jquery call on ajax loaded page fails

[jQuery] Jquery call on ajax loaded page fails


Hi all
This is my first post on this form, sorry for the bad spelling!
In my "ready()" I have 2 functions, one to load a page using the following
ajax call, and one click function, like this:
    $.get("/page.php", function(data){
        $("#overview").html(data);
    });
    $("a#test").click(function(){
        alert('works');
    });
Now I want to have a link on the loaded page.php, like this:
< a href="#" id="test" >Test< /a >
But, that dont seems to work at all?
Is it possible to use functions on "loaded pages" in some way?
Most thankful for som help !!
best regards / johannes
--
View this message in context: http://www.nabble.com/Jquery-call-on-ajax-loaded-page-fails-tp18875871s27240p18875871.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.