$ not working as expected
$ not working as expected
grahampcharles
Posts: 20Questions: 1Answers: 0
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.
[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.
This discussion has been closed.
Replies
Sorry... ;)
g.
Allan