How to get a value in <td> tag

beelrylet

New Member
\[code\]<td id="hello"> OPD </td>\[/code\]On my html page, this is how I am getting a td tag in a tr.I want to get the value "OPD" in java script variable.\[code\]var td1 = document.getElementById("hello");\[/code\]Can I get this value by performing any operation on td1.Is there any other way to do this. Please help
 
Back
Top