Can someone tell me what\'s wrong with this code? I want to create a table with 2 columns and 3 rows, and in the cells I want Text1 and Text2 on every row. This code creates
var html = ""; for (var i = 0; i < data.length; i++){ html +=""+ ""+ (i+1) + ""+ ""+ data[i].name + ""+ ""+ data[i].number + ""+ ""+ data[i].city + ""+ ""+ data[i].hobby + ""+ ""+ data[i].birthdate + ""+"EditDelete"+""; } $("#tableHtml").html(html);