Fotiman - 2:30 pm on Sep 5, 2012 (gmt 0)
Replied too quickly. That is a problem, but I don't think it's the problem you're stuck on.
In your original loop, you're appending to a string. I assume at some point later, you end up appending that to the document, but it's important to recognize that you don't actually have a DOM reference within your loop. Therefore, when you're looping through again later, all you've got is your JSON object. What you might want to do is find the '#myImages' element before your loop, then find the first img child, then iterate through each sibling. Is myImages a unique id? If not, then you've got to correct that first.