Click here to Skip to main content
14,984,032 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

How to get html table cell value in javascript. and how to pass the html cell value in web service method.
Posted

Hope this[^] helps.
   
hi
thank you for ur reply.

i need to get td value. am use code like this
C#
var elTableRow = document.getElementById("tr1");
      var elTableCells = elTableRow.getElementsByTagName("td");
      alert(elTableCells[3].innerText);


but returned the value is undefined.can u tell me wat is error.why that value return like that.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900