row().selected()
Since: Select 1.4.0
Determine if a row has been selected.
Please note - this property requires the Select extension for DataTables.
Description
This method can be used to determine the selection state of an individual row.
Type
row().selected()
Example
Check if the first row in the table is selected or not:
var table = new DataTable('#myTable');
if (table.row(':eq(0)').selected()) {
console.log('Row is selected');
}
else {
console.log('Row is not selected');
}
Related
The following options are directly related and may also be useful in your application development.