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