get last index of dropdown in jquery code example Example: get the last option from select jquery var myVal = $('.someclass option:last').val();