This is a known issue when adding dynamic elements. You need to re-confirm the item you just added.
So for example:
$.ajax({
url: "example.html",
cache: false,
success: function(html){
var $jqueryElement = $(html);
$("abbr.timeago", $jqueryElement).timeago();
$("#results").append($jqueryElement);
}
});
In the example above, rebinds abbr.timeago returns from example.html and adds them to the DOM.
source
share