var str = "Abc: Lorem ipsum sit amet";
str = str.substring(str.indexOf(":") + 1);
You can test it here. Or, the .split() and .pop() version:
var str = "Abc: Lorem ipsum sit amet";
str = str.split(":").pop();
str = str.substring(str.indexOf(":") + 1);
You can test it here. Or, the .split() and .pop() version:
var str = "Abc: Lorem ipsum sit amet";
str = str.split(":").pop();
Comments
Post a Comment