JQuery: remove table column
November 27th, 2009 by jeremychone var colIdx = 2;
$('#myTable tr td:nth-child('+ colIdx +'),
#myTable tr th:nth-child('+ colIdx +')').remove();
var colIdx = 2;
$('#myTable tr td:nth-child('+ colIdx +'),
#myTable tr th:nth-child('+ colIdx +')').remove();