1
I have a script to generate images, and the images are generated with .append
.
$(".fotos").append("<img src='" + size +"'/>");
The problem is that the append doesn’t generate the image in the source code, they are generated from the script itself, so I can’t count how many images there are.
I use this to count, and always returns 1, and appears 10 images.
alert($('img').parent('.fotos').length);
And like I said, only returns 1.
There’s another way to do it?