antonio kapochi
10-17-2006, 10:27 AM
Hi everyone,
i am new to JavaScript, i am writing this js to get a value from the div tag but :(
the DOM inspector shows tree like
-DIV (id=p1)
-DIV (id=p2)
-NAME
#text (<-- this is the value that i want to retrieve)
if i try document.getElementById(p1).lastChild it returns [object HTMLDivElement]
any idea what i am doing wrong?
i am new to JavaScript, i am writing this js to get a value from the div tag but :(
the DOM inspector shows tree like
-DIV (id=p1)
-DIV (id=p2)
-NAME
#text (<-- this is the value that i want to retrieve)
if i try document.getElementById(p1).lastChild it returns [object HTMLDivElement]
any idea what i am doing wrong?