How to get and set data from/to specific hidden cell if I have only tr?

How to get and set data from/to specific hidden cell if I have only tr?

sergedasergeda Posts: 42Questions: 16Answers: 0

I've tried to do it like this:

container.Table.cell( $(this).parents('tr').find('td').eq(1) ).data(0).draw();

But this way it counts only visible columns

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,650Questions: 1Answers: 10,094 Site admin
    edited November 2014 Answer ✓

    jQuery selectors will only select items that are in the document. For the above code I would suggest using:

    container.Table.cell( $(this).parents('tr'), 1 ).data...;
    

    i.e. use the ability of cell() to use both a row and column selector.

    Allan

  • sergedasergeda Posts: 42Questions: 16Answers: 0

    Thank you a lot

This discussion has been closed.