fuzzy1
05-23-2008, 03:44 AM
In testament to my search skills (to say nothing of my prowess as a coder):p
I have been searching for a couple hours now and haven't found any mention of this.
How might one loop through only the elements contained in a div, as one would for elements contained in a form?
var p=document.DIV_NAME.getElementsByTagName('p');//which is silly I know but...
for (i=0; i< p.length; i++){
bla bla
I have been searching for a couple hours now and haven't found any mention of this.
How might one loop through only the elements contained in a div, as one would for elements contained in a form?
var p=document.DIV_NAME.getElementsByTagName('p');//which is silly I know but...
for (i=0; i< p.length; i++){
bla bla