dataTables_sizing div

dataTables_sizing div

mcranemcrane Posts: 10Questions: 4Answers: 0

I am using Javascript to fetch the name of the currently sorted column:
getElementsByClassName('sorting_asc') or getElementsByClassName('sorting_desc')

and then using innerHTML to get the column name. Usually this works, but occasionally I get the following <div> returned:

<div class="dataTables_sizing" style="height:0;overflow:hidden;">Column Name</div>

instead of the expected

<th class="sorting_asc">Column Name</th>

Where does this <div> come from?
Thank you!

This discussion has been closed.