≡
×
Plus
Manual
Examples
Reference
Download
Blog
Community
Support
How a add a class to the last row of every page ?
How a add a class to the last row of every page ?
jujur06
Posts: 3
Questions: 0
Answers: 0
November 2011
edited November 2011
in
General
By default, the tr comes with or . I wish to add a class to the last tr of EVERY PAGES. So the last tr will look something like or . How can I do that ? Thanks in advance. :)
Replies
jujur06
Posts: 3
Questions: 0
Answers: 0
November 2011
No one can answer this ? :(
allan
Posts: 65,846
Questions: 1
Answers: 10,956
Site admin
November 2011
edited November 2011
How about just using CSS to do it?
[code]
#table_id tbody tr:last-child { background-color: red }
[/code]
or something like that?
Failing that, just use
fnDrawCallback
to add the class using standard jQuery / DOM methods.
Allan
jujur06
Posts: 3
Questions: 0
Answers: 0
November 2011
Hi allan,
Thank you so much for your help. I'm able to achieve that by using CSS. Really appreciate your help. :)
This discussion has been closed.
Replies
[code]
#table_id tbody tr:last-child { background-color: red }
[/code]
or something like that?
Failing that, just use fnDrawCallback to add the class using standard jQuery / DOM methods.
Allan
Thank you so much for your help. I'm able to achieve that by using CSS. Really appreciate your help. :)