Re: getElementByName within containing DIV



Hi George, apparently name is not a valid attribute of div. I also
tried document.body.moo.inputbox where moo is the divID but inputbox
is the input name (the id changes depending on the div its within) but
as I suspected this was no good- so Ive got only the original
excessive solution!


Try assigning a name to the DIV element and use the DOM syntax to
access elements by their name like:

document.body.div_name.inputbox ...

It should work...shouldn't it? I'm curious if it works, if you try it,
tell me :-)


.