Column as link prevent select row
Column as link prevent select row
jackrabbit08
Posts: 2Questions: 1Answers: 0
Hi,
In my datatable I have columns that have a link to a pdf file, the table is for kitchen machines and the problem is the next:
when I click a pdf link, the row change as selected becouse the link is in the row. Is correct.
How I can prevent?
Sorry if there is other same discussion, I can't find them.
Thanks a lot
This discussion has been closed.
Answers
Resolved with class in td.
$('#dataTable tbody').on('click','td',function(e){
if (!$(this).hasClass('no_clickable')) {
//do..
}
});