I'm learning jQuery I still have some problems with DOM. I have one table that contains 3 rows and each row have 5 content. I need to add a forth row and its respective contents. Here's my code:
<table>
<tr>
<td>content</td>
<td>content</td>
<td>content</td>
<td>content</td>
</tr>
<table>
Above is the example How the table should be did Below is my jQuery code
var arrayContent = ['Content1','Content2','Content3','Content4','Content5'];
$('table').append(function(){
return $('<tr>').append(function(){
for(var i = 0; i < arrayContent.length; i++){
return $('<td>')
}
})
})
So this code abode only add one tag and I need to add more to my page. Does anyone know how I can improve or suggest new way to do this?

arrayContentare incorrect.