How can I set the Id for a cell?

How can I set the Id for a cell?

BernbacherBernbacher Posts: 5Questions: 1Answers: 0
edited June 2012 in General
I'm sure it's a easy question, but I don't get it: how do I set the attribute id for a cell? If I use jEditable and want to update the data on the server, I need to know what field was edited, so I want to put in the id the rowId and the colId. But how can I set the id, even for the "tr"-Tag?

Replies

  • koosvdkolkkoosvdkolk Posts: 169Questions: 0Answers: 0
    edited June 2012
    Use fnCreatedCell (see http://datatables.net/ref)
  • BernbacherBernbacher Posts: 5Questions: 1Answers: 0
    Thanks, seems to be the right place to do that, but how can i set the id with the value of my first column (its my id field in the database)?
    I don't know how to create for example an id like "row45colXXX". I need that to update the data set of index 45 in the column XXX or is there a better way to do that?
This discussion has been closed.