On click show/hide detail row, exclude first table cell (checkbox)

On click show/hide detail row, exclude first table cell (checkbox)

baron85baron85 Posts: 11Questions: 0Answers: 0
edited November 2011 in General
Hi there,

I've got a datatable with a checkbox on the first table cell and a show/hide detail row.
When I click on a row the detail row will open, this also happens when I click on the input checkbox.
Is there any way to exclude this checkbox so the user will be able to select multiple checkboxes without
the rows opening?

I've just this code to get the row open on click :

[code]
$(oTable.fnGetNodes() ).each( function () {
$(this).click( function () {
var nTr = this;
if ( $(this).hasClass('row_selected') )
{
/* This row is already open - close it */
$(this).removeClass('row_selected');
oTable.fnClose( nTr );
}
else
{
/* Open this row */
$(this).addClass('row_selected');
oTable.fnOpen( nTr, fnFormatDetails(nTr), 'details' );
}
} );
} );
[/code]

Thanx in advance,

Joey
This discussion has been closed.