Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery append after number of chars in string

var str = "1100";

var result= str.substring(0,2) + ":" + str.substring(2);

console.log(result)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #append #number #chars #string
ADD COMMENT
Topic
Name
9+5 =