Re: getElementByName within containing DIV
- From: DanWeaver <danofweaver@xxxxxxxxxxxxxx>
- Date: Sun, 30 Mar 2008 16:22:40 -0700 (PDT)
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 :-)
.
- References:
- getElementByName within containing DIV
- From: DanWeaver
- Re: getElementByName within containing DIV
- From: George Maicovschi
- getElementByName within containing DIV
- Prev by Date: Re: getElementByName within containing DIV
- Next by Date: Re: Very strange problem with Class object
- Previous by thread: Re: getElementByName within containing DIV
- Next by thread: Re: getElementByName within containing DIV
- Index(es):