I am facing an issue with a page that refreshes every 10 seconds and has a resizable column feature.
However, after the page refresh, the table header (th) reverts back to its original position.
The main question is how to obtain the width of a specific th after resizing it and then apply that width only to that th so that the user can see the resized th after the table refreshes.
Which jQuery event can be used to get the width of a th when it is resized, and what method can be used to apply this width only to that particular th without affecting others?
div {
resize: horizontal;
overflow: auto;
}
td {
text-align: center;
}
<div id="banner-message">
<table cellpadding="0" cellspacing="0" border="0>
<thead>
<tr>
<th>
<div>One</div>
</th>
<th>
<div>Two</div>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>ab</td>
<td>cd</td>
</tr>
</tbody>
</table>
</div>