Remove string before certain character javascript

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();

Comments