Here is my HTML:
&
-
2021-01-24 19:13
You can use eq() to select the last element from the visible ones:
var a = $( "table#dataTable.xLookup thead#PickerTHEAD tr th:visible" ).eq(-1);
console.log(a.html());
|
Option ID |
My Description |
QTY |
Unit Price |
nj1 |
nj2 |
...
...
|