You are on page 1of 1

function removeCol(str) {

var target = $('table').find('th[data-name="' + str + '"]');


var index = (target).index();
$('table tr').find('th:eq(' + index + '),td:eq(' + index + ')').remove();
}

You might also like