jquery .find() not finding class
<p>I have a part of my html code that goes like this:</p>

<pre><code> &lt;div id="photo-list-container" class="row"&gt;
            &lt;div class="col-xs-4 col-md-3"&gt;
                    &lt;div class="photo-gallery-holder mar-2x" data-toggle="modal" data-target=".bs-example-modal-lg" data-id="{{ $photo-&gt;id }}" data-photo-filename="{{ $photo-&gt;id }}" data-tags="{{ htmlspecialchars(json_encode($photo-&gt;tags)) }}"&gt;
                        &lt;img class="img-responsive" src="{{ $photo-&gt;thumb_url }}" alt="{{ $photo-&gt;title }}" /&gt;
                    &lt;/div&gt;
            &lt;/div&gt;
    &lt;/div&gt;
</code></pre>

<p>and the I have tried to do with jquery:</p>

<pre><code>$('#photo-list-container').find('.photo-gallery-holder').each(function() {
...
});

OR

$('#photo-list-container .photo-gallery-holder').each(function() {
</code></pre>

<p>And it always returns not found. why is that? The div that im searching for is nested in the photo-list-container just fine?</p>

<p>Please help. Thanks.</p>