I am trying to loop through elements which are returned as dynamically loaded content via the ajax `$.post` method. Here is the code:

```
$.post(ajax_url, {action: 'filter-search-results', term_id: term_id}, function (res) {
    $('.job_listings').empty();
    $('.job_listings').html(res);
    $('.hotel-rate').each(function (i, obj) {
        //...

```

But the `each` function is not being executed. 

When I trigger a click event of `body` it works:

```
$.post(ajax_url, {action: 'filter-search-results', term_id: term_id}, function (res) {
    $('.job_listings').empty();
    $('.job_listings').html(res);
    $(document).on('click', 'body', function() {
        $('.hotel-rate').each(function (i, obj) {
            //...

```

It works fine. But I don't want to the `each` to be binded in any event. How can I execute the `each` function without triggering any event?