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