Please forgive me if I repeat the question.
I have HTML that all elements inside a div tag has different id, suppose I have already get the reference to the div, is
In HTML ids should be unique. I suggest you change your code to something like this: