get last tr from table jquery code example
Example 1: get last char javascript
var lastChar = myString[myString.length -1];
Example 2: get the last option from select jquery
var myVal = $('.someclass option:last').val();
var lastChar = myString[myString.length -1];
var myVal = $('.someclass option:last').val();