Massimiliano Marini wrote:
Well, it depends. When you say that the content is generated
dynamically, are you saying that it's generated by a server side
language like ColdFusion or PHP?
I think this case, this is my code:
$.ajax({
type: "GET",
url: "news.php",
success: function(msg){
$("#response").fadeIn("slow").html(msg);
}
});
The problem is that the HTML you want to access gets appended to the DOM
asynchronously. Try this:
$.ajax({
type: "GET",
url: "news.php",
success: function(msg) {
$("#response").fadeIn("slow").html(msg).find('a').click(function(){
alert("Hello");
return false;
});
}
});
--Klaus