日期:2014-05-18  浏览次数:20878 次

请javascript高手务必救我!
<table border="1" id="companyValue">
   
  <tr>
  <td>10001</td>
  <td>1111111111111</td>
  <td>22222222222</td>
  <td>454-0911</td>
  <td>(052)369-0101</td>
  <td>(052)369-0100</td>
  </tr>
   
  <tr>
  <td>10002</td>
  <td>22222222222</td>
  <td>2222222</td>
  <td>454-0911222</td>
  <td>010122</td>
  <td>010022</td>
  </tr>
   
</table>

// 得到这个table
var tableValue = document.getElementById('companyValue');

如何读取<td>中间的值?

我有一个下拉框,一旦选择下拉框中的某些数据,对应的textbox框就自动填充table中对应的数据。想用javascript做,如何实现?

------解决方案--------------------
document.getElementById('companyValue').rows[0].cells[0].innerHTML
代表第一行第一列的html