Change data in specified cell if a row is selected

Change data in specified cell if a row is selected

AransajaAransaja Posts: 8Questions: 4Answers: 0
edited July 2014 in Free community support

I am using the datatables from datatables.net
I am trying to do something similiar to this
http://datatables.net/examples/api/select_single_row.html

If i push on Button 1 the selected row should make the cell in column c change it's data from "f" to "p".

| A | B | C | D |

| 1 | # | f | # | <--- selected row

| 2 | # | p | # |

How am I going to code it? Would something like below work?

    $('#button').click( function () {
        table.row('.selected').table.column('c').value(p)
    } );
This discussion has been closed.