Row Selector Not Working
Row Selector Not Working
naturalgoodness
Posts: 3Questions: 1Answers: 0
Hi
I'm completely stuck! I'm trying to use the row selector (http://datatables.net/reference/type/row-selector) to fetch a specific row ID and then add a css class to the selected <tr>. I'm using the string type row selector exactly as indicated in that link so it should get treated as a jQuery selector then calling addClass but nothing is happening. Any help would be appreciated! jQuery code is below and also a link to a jsfiddle:
var table = $("#5_table").DataTable();
var row = table.row('#257_item');
row.addClass('highlight');
jsfiddle here: http://jsfiddle.net/8XfBn/
This discussion has been closed.
Answers
jsfiddle link should be:
http://jsfiddle.net/8XfBn/1/
but it still not work! How to solve this problem?