jQuery table rebuild
Posted
by Happy
on Stack Overflow
See other posts from Stack Overflow
or by Happy
Published on 2010-06-16T09:51:50Z
Indexed on
2010/06/16
9:52 UTC
Read the original article
Hit count: 196
We have a table:
<table>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
<td>6</td>
<td>7</td>
<td>8</td>
<td>9</td>
<td>10</td>
</tr>
</table>
We update this table by throwing into each <tr>
only 3 <td>
.
It must look like:
<table>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>4</td>
<td>5</td>
<td>6</td>
</tr>
<tr>
<td>7</td>
<td>8</td>
<td>9</td>
</tr>
<tr>
<td>10</td>
</tr>
</table>
How can we do this?
Thanks.
© Stack Overflow or respective owner