string remove in javascript code example
Example 1: javascript replace
var res = str.replace("find", "replace");
Example 2: remove substring from string javascript
var ret = "data-123".replace('data-','');
var res = str.replace("find", "replace");
var ret = "data-123".replace('data-','');