Problem found on creating elements dynamically in a “for” loop

I would be grateful if a host could delete this post. It is late in the night, I am quite sleepy and I posted in the wrong place.