For all first level children
var children = document.getElementById('id').childNodes;
For all descendants
var children = document.getElementById('id').getElementsByTagName('*');
For some particular element children
var childNodeArray = document.getElementById(tbody).getElementsByTagName('tr');
No comments:
Post a Comment