Find element child by id

Find element child by id

Hey!
Have same elements:

  1. <div>
  2. <div class="elem" mid="123">
  3. <div class="t" vmid=""></div>
  4. </div>
  5. <div class="elem" mid="234">
  6. <div class="t" vmid=""></div>
  7. </div>
  8. <div class="elem" mid="345">
  9. <div class="t" vmid="234"></div>
  10. </div>
  11. <div class="elem" mid="567">
  12. <div class="t" vmid="345"></div>
  13. </div>
  14. <div class="elem" mid="678">
  15. <div class="t" vmid=""></div>
  16. </div>
  17. </div>

How I can find element child by vmid ?

Result like:

  1. 345
  2. 567
  3. 678