I am trying to make a chessboard using javascript and creating 64 divs with it. The problem is, that it creates only the first div. Here is the code:
function crt_dv(){ dv=document.createElement('div'),document.body.appendChild(dv) }; crt_dv(),dv.className='white';crt_dv(),dv.className='black';
Also use: for(i=0;i<2;i++)