Good Morning !
I'm trying to follow the example to show details of hidden row. And it works, but I have 3 columns with images and when I click on any of the images, the "fnIsOpen" is called.
I just need to execute the function in a column.
How do I do that function execute only in a specific column?
Thank you for your attention,
Allan Teixeira
I'm trying to follow the example to show details of hidden row. And it works, but I have 3 columns with images and when I click on any of the images, the "fnIsOpen" is called.
I just need to execute the function in a column.
How do I do that function execute only in a specific column?
$('#tabtravel tbody td img').live('click', function () {
var nTr = $(this).parents('tr')[0];
if ( oTable.fnIsOpen(nTr) )
{
/* This row is already open - close it */
this.src = "img/details_open.png";
oTable.fnClose( nTr );
}
else
{
/* Open this row */
this.src = "img/details_close.png";
oTable.fnOpen( nTr, fnFormatDetails(oTable, nTr), 'details' );
}
} );
otable = $('#tabtravel').dataTable();
} );
Thank you for your attention,
Allan Teixeira