Possible Duplicate:
Creating tables dynamically in jQuery
I have two Arrays, letters = [A,B,C,...] and numbers = [1,2,3,...], and would like to generate a html table with numbers as the headers and letters as the first entry (and then I can fill it in with values which I have). Is this possible for general Arrays?
That is, as shown below:
<table>
<thead>
<tr>
<th></th>
<th>1</th>
<th>2</th>
<th>3</th>
</tr>
</thead>
<tbody>
<tr id="A">
<td>A</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr id="B">
<td>B</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr id="C">
<td>C</td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>