[Javascript] Selecting a form element

Terry Riegel riegel at clearimageonline.com
Wed Oct 4 13:54:54 CDT 2006


On Oct 4, 2006, at 2:14 PM, Peter Brunone wrote:

>
>    That's probably because "mydata" is the element's name  
> attribute.  The tag name is "INPUT".
>
> Cheers,
> > var nameArray = document.getElementsByTagName('mydata');

Peter,

Thanks, so what you are saying is that Triche's solution isn't going  
to work. So I am left with my original question.

> If I have a form element like
> <input type="text" name="mydata">
> Is there a way to select it in a similar manner to getElementById()?

Terry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20061004/3e6bffdb/attachment.htm>


More information about the Javascript mailing list