How to empty all from div but first one?

pen: [ ]
line 30
I tried this

$gameContainer.empty(); // only this works

Only first works, but i need something like second and third to be working

Is this the result you are looking for:

for ( var i = 0; i < currentGridNumber; i ++ )
      for ( var y = 0; y < currentGridNumber; y ++ ){


Add an if/else statement within your for loops.

No, ur code ‘deleting’ my first canvas (node in grid)
comment line where i empty $gameContainer
u will se another div called '#ground'
it represent 'shadow’
i want to use div instead box-shadow