09/20/2015 at 5:27 am #7488

Anonymous
Participant
Hi,
I don’t think the ‘AddRowToTable’ function in your script is correct, the structure of the table should be as below:
<table>
<tr>
<td>…</td>
<td>…</td>
<td>…</td>
</tr>
</table>
But the ‘$(“#tabk”).append(“<td><a href=” + url + “>” + title + “</a></td>”);’ will generate the structure below, the td is not embedded under the <tr/>:
<table>
<td>…</td>
</table>
You should create a <tr/> object first, and then add all the td elements into this object, finally, append the tr object into the table object.