Column selectors - how to code this?
Column selectors - how to code this?
tangerine
Posts: 3,365Questions: 39Answers: 395
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
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.