I have a textarea im trying to access through javascript
using getElementById("id").x i can access the textarea no problem, but changing it to getElementsByName("name").x, all x's are undefined (ie, value, name, rows,cols)
now of course the obvious answer is to just access through ID, but due to some circumstances, i cant. I must access it using the name attrib. Any idea why getElementsByName() wont work?
using getElementById("id").x i can access the textarea no problem, but changing it to getElementsByName("name").x, all x's are undefined (ie, value, name, rows,cols)
now of course the obvious answer is to just access through ID, but due to some circumstances, i cant. I must access it using the name attrib. Any idea why getElementsByName() wont work?