Selector Extension // addClass?
Selector Extension // addClass?
Gea
Posts: 33Questions: 13Answers: 1
Hello all, i have a question with selector extension:
Can i get the class of a row?
something like:
<code>
var data = table
.rows()
.data();
var id = 0;
tr = data.row(id);
tr.addClass('selected');
</code>
Is this possible?
If my code is wrong, how can i do?
Thanks u all :)
This discussion has been closed.
Answers
Use the
row().select()
method to select the row. See the Select documentation.Allan
Can i get a row using his id? like:
or something like that.
Thanks.
Gea.
I must say that i can't use on click function in this part of my proyect.
That's why i get problems.
Yes you can do that. If it isn't working for you I'd need a link to a test page showing the issue.
Allan