On Thu, Jun 10, 2010 at 14:24, Toddintr <[email protected]> wrote:
> I also found out the following:
>
> var x=document.getElementsByName('textMARS');
> alert(x.length);
>
> The above code prints out "1", so I know that the element is being
> found.  However:
>
> x.value="1234567';
>
> does not work.

x is a collection of nodes rather than the node itself. Perhaps x[0].value ?

-- 
There are 10 kinds of people in the world: Those who understand binary
and those who don't...

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.

Reply via email to