<font face="arial" size="2">Sorry, I came in late...<br /><br />   I believe someone mentioned document.forms[formIndex].controlName if you know where the form is in the order of forms -- if not, you can always just hit each form (can't be that many) and see if it has an element named "mydata".<br /><br />   Another way would be to go ahead with getElementsByTagName and loop through the resulting array of fields, checking for each one's name and getting what you need.<br /><br />   Beyond that, no, there's not really a "name" equivalent for getElementById.<br /><br />At least I'm pretty sure of that...<br /><br />Peter<br /><br /></font>
                <font face="Tahoma, Arial, Sans-Serif" size="2">
                                <b>From</b>: Terry Riegel <a href="mailto:riegel@clearimageonline.com">riegel@clearimageonline.com</a><br /></font>
                <br />
                <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: 0px">If I have a form element like</div>
                                <div style="MARGIN: 0px">&lt;input type="text" name="mydata"&gt;</div>
                                <div style="MARGIN: 0px">Is there a way to select it in a similar manner to getElementById()?</div>
                </blockquote>
                <div>Terry</div>