getting id value rather than value

getting id value rather than value

dariszdarisz Posts: 9Questions: 0Answers: 0
edited April 2013 in General
Hello, I have a question. Can I get an id value from tag rather than the value that is between 2012-12-01 in sorting function?
[code]
jQuery.extend( jQuery.fn.dataTableExt.oSort, {
"date-pl-asc": function ( a, b ) {
get_id_value(a); ?
}
[/code]

Replies

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    Currently no - I'm sorry to say that this isn't possible. I am working on a plan to make it possible in v1.10 though...

    At the moment you need to had the data you want to sort on inside the cell in one way or another.

    Allan
  • dariszdarisz Posts: 9Questions: 0Answers: 0
    thanks for the reply. I did it in another way. I put the id values to a hidden column and I did sorting through that hidden column and it works :).
    Thank you once again.
    Darek
This discussion has been closed.