Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 1
    Show us the HTML you're using. Better yet, make a jsFiddle. Commented Dec 4, 2014 at 19:01
  • You are using 'i' as the index of where the cell should be inserted, but you are also using 'i' in your for loop for adding rows. Remove 'i' from your row.insertCell calls and replace it with the index (0-7). Commented Dec 4, 2014 at 19:02