$ not working as expected

$ not working as expected

grahampcharlesgrahampcharles Posts: 20Questions: 1Answers: 0
edited July 2012 in DataTables 1.9
Working from the $ function API demo code, I alter it to look like this:

[code]
$(document).ready(function() {
var oTable = $('#example').dataTable();

// Highlight every gradeX row
oTable.$('tr.gradeX').css('backgroundColor', 'blue');
} );
[/code]

Nothing ends up highlighted -- not even the rows with the gradeX class. I've also tried

[code]
oTable.$('tr').filter('.gradeX').css('backgroundColor', 'blue');
[/code]

Is there something I'm misunderstanding?

Thanks!

g.

Replies

  • grahampcharlesgrahampcharles Posts: 20Questions: 1Answers: 0
    Because I'm an idiot, of course... there *are* no gradeX TRs on the first page.

    Sorry... ;)

    g.
  • allanallan Posts: 63,700Questions: 1Answers: 10,501 Site admin
    heh - I trust that the gradeX elements that are on other pages are correctly highlighted though?

    Allan
This discussion has been closed.