On Jan 27, 4:02 pm, Mike Alsup <mal...@gmail.com> wrote:
> > Javascript:
> > var myDiv=secondtdArray.item(0).firstChild.data;
> > firsttdArray=xmlRoot.getElementsByTagName("second");
> > document.getElementById("myDiv").innerHTML =firsttdArray.item
> > (0).firstChild.data;
>
> > I tired to secondtdArray.item(0).firstChild.data directly in place of
> > myDiv in document.getElementById...................The error show is
>
> > document.getElementById("secondtdArray.item(0).firstChild.data") is
> > null
>
> > When i used a specified address the functionalityis geting fine
>
> Remove the quotes in your calls to getDocumentById.
>
> document.getElementById(second)
> or
> document.getElementById(secondtdArray.item(0).firstChild.data)
Tuesday, January 27, 2009
[jQuery] Re: Problem with document.getElementsById()
Even then showing null as error
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment