substring from right in jquery code example
Example: javascript substring
// zero-based index, 'end' is excluded from result
myString.substring( start, end )
// zero-based index, 'end' is excluded from result
myString.substring( start, end )