javascript - How to Change the Width of the Column in dynamical approach -


i have default width value column in table. want user able change width of column using cursor , dragging header (like how in ms excel).

i use jquery , bootstrap. how do it?

code:

table{      border: 1px solid black;  }    th, td {      border: 1px solid black;  }
<table>     <tr>        <th>header 1</th>        <th>header 2</th>     </tr>     <tr>        <td>data </td>        <td>data 2</td>     </tr>     <tr>        <td>data asdfassdfasdf</td>        <td>data 2</td>     </tr>     <tr>        <td>data asdfasdfasdfasdfasdf</td>        <td>data 2 sdf sdfsdf</td>     </tr>      </table>

you mean should resizable?

if can suggest use jquery ui since use jquery.

https://jqueryui.com/resizable/

hope :d


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -