Column selectors - how to code this?
Column selectors - how to code this?

I need to establish whether column(0) has the class '.dtr-control'.
I have this (returning an array), but then I'm stuck:
// Is the table using Responsive...?
var cols = oTable.columns('.dtr-control');
FWIW, I couldn't figure out jQuery hasClass either. Dumb day here.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Use
column().header()
to get theth
. Put that in a jQuery call with.hasClass()
, something like this:Kevin
Sublime. Thank you so much, Kevin.