title: Get element value from multiple table rows generated by js
body: <p>I'm generating table in html using js, each row contain two drop down and 1 test box, each drop down has onchange function, my prob is how can I get first drop down selected value when second drop down is choose in second drop down onchange function. </p>
  
  <p>I tried the below code:</p>
  
  <pre><code>  var r = document.getElementById('AACTVTbl').getElementsByTagName('td')[idx-1].document.getElementById("division").value;
  alert(idx+" "+r); 
  </code></pre>
  
  <p>but just get value from 1st row only.</p>
  
  <p>Can anyone help me?</p>