Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

separate last character string javascript

var id = "ctl03_Tabs1";
var lastFive = id.substr(id.length - 5); // => "Tabs1"
var lastChar = id.substr(id.length - 1); // => "1"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #separate #character #string #javascript
ADD COMMENT
Topic
Name
6+1 =