How a add a class to the last row of every page ?

How a add a class to the last row of every page ?

jujur06jujur06 Posts: 3Questions: 0Answers: 0
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

  • jujur06jujur06 Posts: 3Questions: 0Answers: 0
    No one can answer this ? :(
  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    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
  • jujur06jujur06 Posts: 3Questions: 0Answers: 0
    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.