<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><DIV>On Oct 4, 2006, at 2:14 PM, Peter Brunone wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><FONT face="arial" size="2">                                 <BR>   That's probably because "mydata" is the element's name attribute.  The tag name is "INPUT".<BR><BR>Cheers,<BR></FONT>&gt; var nameArray = document.getElementsByTagName('mydata');<BR></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV>Peter,<BR></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thanks, so what you are saying is that Triche's solution isn't going to work. So I am left with my original question.</DIV><BR><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">If I have a form element like</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&lt;input type="text" name="mydata"&gt;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Is there a way to select it in a similar manner to getElementById()?</DIV></BLOCKQUOTE><BR><DIV>Terry</DIV></BODY></HTML>