Updating DOM tree in Java after appendChild



My problem is, when I add new Child in the tree, I try to access this element by ID (document.getElementByID("id")) but returns null.


However, if I navigate since root element, to their children, this element appears.


What should I do?


I think it's a problem of indexing IDs


Thanks and regards.


No comments:

Post a Comment