Forum Moderators: open

Message Too Old, No Replies

access the text of <td> in table

         

manjumurthy

6:10 am on Sep 14, 2001 (gmt 0)



Hi,
How do i access the text of <td> in table through javascript.
ex:<table>
<tr><td id="one">example</td></tr>
</table>
I tried
document.getElementById("one").value, but it doesn't work
How do i do that???
thanks
manjumurthy

joshie76

12:18 pm on Sep 14, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



document.getElementById('one').innerHTML