remove a part of string in js code example
Example 1: remove substring from string javascript
var ret = "data-123".replace('data-','');
Example 2: js remove string from string
var ret = "data-123".replace('data-','');
console.log(ret); //prints: 123