How to give colour tr with max id in Table

How to give colour tr with max id in Table

Hey guys i'm trying to give colour in tr table which has max id (Higher id) , if you guys asked what i have done already try using this  http://stackoverflow.com/questions/12556647/get-highest-number-from-table-cell-content but i cant get the value when change in tr , Thanks