If my return value like
var id = "abc10111";
I want to get the output like this “10111”. How can I get the last 5 characters from a string using jQuery?
if you want to get last 5 characters from string in jQuery, apply this code.
var id = "abc10111"; var lastChar = id.substr(id.length - 5);
Output: 10111 Hope it will be helpful for you.
Username
Password
Remember Me
Lost your password?
Username or E-mail:
Log in