How to get id of li tags which are added to the page asynchronously after the page load.
I have tried to with function document.ready but it loads before asynchronous li data load.
e.g In my page there is a news data which loads asynchronously & i dont have any control over it. When user clicks on the news link it goes to some location i need to change it to some other location.
I have tried following code. but it is not working.
$("a[href*='Pages/results.aspx']").each(function(){
var href = $(this).attr('href').replace('/Pages/results.aspx', window.location.pathname);
$(this).attr("href", href);
});