Repeated ids

Repeated ids

Hi, just a little question, let´s supose that I load an html into a div1 element and after that, I load the same html into a div2.
In this html I have an element called "myElement".

How to reference each one individually ?