jQuery::flexigrid::How to get selected row data

Unlike Ext JS, Flexigrid doesn’t use a data model (I think it is not a bad idea if they introduce this). Then, it would be easier to manipulate records in the rows.

Here’s a tip how you get the row of data.

$.fn.getSelectedValues = function() {
    var arr_val = [];
    var sel = $(".flexigrid .trSelected td");
    if (sel.length > 0) {
        for(var i=0; i<sel.length; i++){
            arr_val.push($(sel[i]).find('div').text());
        }
    }
    return arr_val;
}