Mark an row
Mark an row
I try to mark a row with selected but for some reason I do not achieve it.
          var wdts = table.table( this.parentNode.parentNode );
          console.log(wdts);
          if(  wdts.data().any() ){
            console.log(wdts.row(this)); //Here is functional
            wdts.$('tr.selected').removeClass('selected');
            wdts.$(this).addClass('selected');
          }
Thank for you help.
This question has accepted answers - jump to:
This discussion has been closed.
            
Answers
Use
row().select()- assuming you are using the Select extension.Allan
I use Select extension, but not work.
I found the problem, I worked on a predesigned template, changing all the libraries and leaving the official, the problem was solved.