Answers for "how to get a certain part of a string in javascript after a identified word"

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 "how to get a certain part of a string in javascript after a identified word"

Code answers related to "Javascript"

Browse Popular Code Answers by Language