I have the following HTML
<table id="tbl1">
<!-- Table row trHeader should be here based on a flag //-->
</table>
<table id="tbl2">
<tr id="trHeader">
<td>test</td>
</tr>
</table>
I have a flag (essentially a button), that I use to be able to move the table row with id=”tbl2″. How would I switch it back to the same position based on this flag.
Try something like this
Update, I’m not sure where your button is to do the toggling, I’m going to assume that your toggling when you click the header row. If otherwise, let me know.