For example, I have this code:
<table>
<tr>
<td class="last"></td>
<td></td>
</tr>
<tr>
<td class="last"></td>
<td></td>
</tr>
<tr>
<td class="another"></td>
<td></td>
</tr>
<tr>
<td class="another"></td>
<td></td>
</tr>
</table>
I want this to be set like this using javascript:
<table>
<tr>
<td class="another"></td>
<td></td>
</tr>
<tr>
<td class="another"></td>
<td></td>
</tr>
<tr>
<td class="last"></td>
<td></td>
</tr>
<tr>
<td class="last"></td>
<td></td>
</tr>
</table>
Just what is needed is, javascript should detect td with class "last" and take whole table row to bottom of the table.