I have the following table and want to reorder the table column according to the <th>
position attribute value with jquery after the page is loaded.
I looked at the following solutions but couldn't solve my problem:
<table>
<head>
<tr>
<th position = "3">Email</th>
<th position = "1">Name</th>
<th position = "2">Phone</th>
</tr>
</head>
<tbody>
<tr>
<td>[email protected]</td>
<td>Hamid</td>
<td>0776567432</td>
</tr>
</tbody>
</table>