Single or Multiple select row and return value from table
var $rows = [];
$(function() {
console.log( "ready!" );
// start plugin
$('#tableSelected').TableSelection({
sort : false, // sort or not (true | false)
status : 'multiple', // single or multiple selection (default is 'single')
}, function(obj){ // callback function return selected rows array
$rows = obj.rows;
});
});
// Get HTML Object from row in array
function showSelectedRow(array){
$('#info').empty();
$.each(array, function(i, row){
$('#info').append('<li>'
+ $('#tableSelected').RowValue(row).find('td').eq(2).html() // HTML Object
+ '</li>');
});
}