Answers for "get everything after the first word in a string javascript"

1

get everything after the first character javascript

var val = 'asdasd:111122:123123123';
var response = val.substring(val.indexOf(":"));

alert(response); // ":111122:123123123"
Posted by: Guest on September-16-2020

Code answers related to "get everything after the first word in a string javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language