I have a javascript which makes a table in HTML sortable. However I want to style the header of the column which is clicked using javascript.
How can I get the thead of the table? I know the column of the header which i need to change.
Here is what my javascript returns to me right now.
javascript
console.log(table.tHead);
output to console:
<thead>
<tr>
<th>Name</th>
<th>Times Placed</th>
<th>UMF (KB)</th>
<th>UAC</th>
<th>Texture Memory (MB)</th>
<th>Texture Count</th>
<th>Mesh Memory (KB)</th>
<th>Mesh Count</th>
<th>Path</th>
</tr>
</thead>