title: Insert cells in specific column in Table
body: <p>I have a Table with 3 thead. </p>
  
  <p>I'm trying to insert cells in the second column. </p>
  
  <p>I put the insertCell function as follows:</p>
  
  <pre><code>cell = row.insertCell(2); 
  </code></pre>
  
  <p>but it doesn't work.</p>
  
  <p>This is my code :</p>
  
  <pre class="lang-js prettyprint-override"><code>function add() {
      j++;
      count++;
      var table = document.getElementById('table0');
      var row = table.insertRow(-1);
      cell = row.insertCell(1);
      text = count;
      cell.appendChild(document.createTextNode(text));
  
  
  }
  </code></pre>
  
  <p>Here is my JSFiddle <a href="http://jsfiddle.net/54pmo8oy/13/" rel="nofollow noreferrer">code</a></p>
  
  <p>Can anyone help me?</p>