column names instead of column numbers

column names instead of column numbers

velovelo Posts: 11Questions: 0Answers: 0
edited July 2011 in General
is there a preferred way to reference columns inside the datatable definition or functions? For example instead of saying "td:nth-child(6)" I would like to say "td:nth-child(lastName)".

Replies

  • velovelo Posts: 11Questions: 0Answers: 0
    This is a previous discussion that seems to address it.
    http://datatables.net/forums/discussion/890/referencing-the-data-array-using-sname-instead-of-position-integer/p1

    is this still the best approach?
This discussion has been closed.