remove from string in javascript code example
Example 1: remove substring from string javascript
var ret = "data-123".replace('data-','');
Example 2: javascript remove character from string
mystring.replace(/r/g, '')
var ret = "data-123".replace('data-','');
mystring.replace(/r/g, '')