var rowIndexS = 0 var rowIndexC = 0 for (let i = 0; i < 50; i++){ $('#tbodyS').append('
'+(++rowIndexS).toString()+'
'+(++rowIndexC).toString()+'