title: How to get count value increamented within loop
body: <p><a href="http://jsfiddle.net/KKH9a/16/" rel="nofollow">http://jsfiddle.net/KKH9a/16/</a></p>
  
  <p>Tried using console using <code>table1.rows[0].cells[1].innerHTML</code> => <code>"Numbers"</code>
  Tried even this code <code>table1.rows[0].cells[1].innerHTML!=null</code> => <code>true</code></p>
  
  <p>But if I try this code below:</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;table id="table1"&gt;
  &lt;tr&gt;
      &lt;td&gt;Value&lt;/td&gt;
      &lt;td&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;Value&lt;/td&gt;
      &lt;td&gt;Value&lt;/td&gt;
  &lt;/tr&gt;
  &lt;table&gt;
  </code></pre>
  
  <p>Javascript:</p>
  
  <pre><code>for (var i = 0; i &lt; table1.rows.length; i++) {
      for (var j = 0; j &lt; table1.rows[i].cells[j].innerHTML; j++) {
          if (table1.rows[i].cells[j].innerHTML != null) {
              var count = 0;
              count = count + 1;
              alert(count);
          }
      }
  }
  </code></pre>