Find a dynamic added tag with javascript

Posted by Jake on Stack Overflow See other posts from Stack Overflow or by Jake
Published on 2010-04-02T16:04:56Z Indexed on 2010/04/02 16:13 UTC
Read the original article Hit count: 300

I am trying to see how to find a tag that was added dynamically within a table as so:

ParentTag= document.getElementById('parentdiv');
var newTag = document.createElement('div');
newTag.innerHTML="<span class="ImNew"></span>" 
ParentTag.appendChild(newTag);

How will I be able to find that tag in javascript, not leaning towards using jquery so no live recommendations please.. Trying to find that new tag in strictly javascript.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about traversing