[thelist] DOM - .childNode and How to Target?
Dean Mah
dean.mah at gmail.com
Mon Apr 2 09:03:14 CDT 2007
On 4/2/07, Christian Heilmann <codepo8 at gmail.com> wrote:
> > What about trying:
> >
> > document.getElementById('Username').nodeValue = 'Email Address';
>
> That doesn't make sense at all...
> document.getElementById('Username') is an input element and as
> elements are not text nodes the nodeValue is null.
How about:
document.getElementById('Username').value = 'Email Address';
or
document.getElementById('Username').setAttribute('value', 'Email Address');
then?
Dean
More information about the thelist
mailing list