select last row

select last row

chasschass Posts: 2Questions: 0Answers: 0
edited December 2009 in General
hi all: how to select de last row of a datatable.?
thanks

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Hi chass,

    You can get the TR element at the end of the table by using fnGetNodes() ( http://datatables.net/api#fnGetNodes ) and then selecting the last element in the returned array. From there you can do whatever 'selection' or whever else you want with the TR.

    Regards,
    Allan
  • chasschass Posts: 2Questions: 0Answers: 0
    thank you..
This discussion has been closed.