In JavaScript I am creating a grid (the type of grid you see in Photoshop) with HTML tables. The grid size is going to be variable, i.e., changeable by the user, so the size
You are appending the same element over and over. You need to call document.createElement each time you wish to have a new element.
document.createElement