I am new to jQuery and I came across a Problem with the find function.
I got the following two lines in my code
Copy 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.
//edit:
The <::after> tags are shown in dragonfly with opera 12.01, as a matter of fact they aren’t shown in firefox, but the result is the same, they arent selected. If I use the selector on static html tags they work. maybe my difficulties are the result of the recently manipulation of the dom.
Can you please help me?
Kind regards
Angelo Hannes
So I finally figured it out.
As it seems, Opera Dragonfly shows elements, that were not in the dom at the time of selection.
That was very confusing. But thank you all very much!