I\'m using DataTable 1.10.9 (from https://datatables.net). Columns for the datatable are defined at the initialization step in javascript and each column has a unique name, e.g.
You can try using this another method. "index" variable is a column of your thead. This method will get the thead column of your table and read the text inside tag.