how remove \ in string in js code example
Example 1: javascript remove character from string
mystring.replace(/r/g, '')
Example 2: how to remove a text by javascript
var ret = "data-123".replace('data-','');
mystring.replace(/r/g, '')
var ret = "data-123".replace('data-','');