0 LIKES LikeUnLike
ie..obj = document.getElementById(obj);var tmpHeight;len = obj.childNodes.length;for (i=0; i<len; i++) { if (obj.childNodes[i].nodeType == 3) { console.log(obj.childNodes[i].firstChild... } }<div id="4" style="width:100px; height:300px; margin:10px; float:left;"> <h2 id="h2">4</h2> <p id="p">lorum ipsum and such and such</p></div>only brings me undefined, ive tried many many ways, but no luck so far.many thanks :)
Tags:
Report (0) (0) | earlier
Latest activity: earlier. This question has 2 answers.