Column as link prevent select row

Column as link prevent select row

jackrabbit08jackrabbit08 Posts: 2Questions: 1Answers: 0
edited September 2015 in Free community support

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

Answers

  • jackrabbit08jackrabbit08 Posts: 2Questions: 1Answers: 0

    Resolved with class in td.
    $('#dataTable tbody').on('click','td',function(e){
    if (!$(this).hasClass('no_clickable')) {
    //do..
    }
    });

This discussion has been closed.