I have a table view
<table> <tr> <th>...</th> <th>...</th> <th>...</th> </tr> <tr> <td>...</td> <td>...</td> <td>...</td> </tr> <tr> <td>...</td> <td>...</td> <td>...</td> </tr> </table>
I need to add text to each cell of the column by clicking on the column header.
Stopped at this:
$('document').ready(function (){ $('th').click(function(){ // А что дальше? }); });