I am new to jQuery and I came across a Problem with the find function.
I got the following two lines in my code
console.log($('ul.gallery'));
console.log($("ul.gallery").find("img"));
And the output in Opera Dragonfly looks like that
As you can see, the find function does not find the img tags, but as you can also see, it is there.
I don't know if this has something to do with that strange <::after> tag. And I don't know where this comes form. But I need a reference to that img tags. And can't get it.
But the last log only shows an empty jQuery Object. But the page is shown right. Therfore I see the elements, that the selector does not select. Both rendered and in the DOM in Opera Dragonfly. And I see the elements when I select the body tag. I even tried just selecting all anchor-elements, or all img-tags but the resently injected weren't selected.
<ul class="gallery" id="10150125627794020">
<li>
<a href="https://..." rel="external">
<img src="https://..."/>
</a>
</li>
</ul>
But if I do a manuel page chachge by clicken in the menubar the selection is correct.
So can you please help me, and reveal the trick to me?