title: Creating Cell names in expanding table HTML
body: <p>I have a javascript function making a table expand. I want to be able to retrieve the values of each cell. But I am struggling to find a way to call them.</p>
  
  <pre><code>function createTable(){
    var rows=document.getElementById('mRows').value;
    var columns=document.getElementById('nColumns').value;
    var theader = '&lt;table id="matrixA" border="1"&gt;\n';
    var tbody='';
  
    for(var i=0;i&lt;rows;i++){
      tbody+='&lt;tr&gt;'
      for(var j=0;j&lt;columns;j++){
          tbody += '&lt;td&gt;';
          tbody += '&lt;input name="i,j"&gt;';
          tbody += '&lt;/td&gt;';
  
      }
      tbody+='&lt;/tr&gt;\n'
    }
    var tfooter='&lt;/table&gt;'
    document.getElementById('matrix').innerHTML = theader+tbody+tfooter;
  </code></pre>
  
  <p>}</p>