>> If I have a form element like
>> <input type="text" name="mydata">
>> Is there a way to select it in a similar manner to getElemntById()?
> var nameArray = document.getElementsByTagName('mydata');
I can' seem to get getElementsByTagName working. I am not sure what I am doing wrong.
This confused individual thought “TagName” referred to the “name” attribute. Why would anyone think the “name” attribute was a tag? Because hundreds of people go around referring to attributes and tags. Stop it. You’re confusing people. If you don’t know what a technical term means, don’t use it. Use plain English instead.