How to iterate the elements are loaded via ajax after page load?

Situation: the page has loaded, but in the same block is still uploading the data and generate an html code with these data. So load the list of news. The process takes no more than a couple seconds, but $(function) has worked and now when I want to cycle through loaded units

$(".news__item").each(function(indx, element) {
console.log('1');
 });


on the console nothing is shown. How to be?
June 27th 19 at 14:53
1 answer
June 27th 19 at 14:55
The function $.ajax is the complete function that is called at the end of the request.
At the end of the build the html - iterates.

Find more questions by tags JavaScriptjQuery