javascript remove _ from string code example
Example 1: javascript replace
var res = str.replace("find", "replace");
Example 2: js remove string from string
var ret = "data-123".replace('data-','');
console.log(ret); //prints: 123
var res = str.replace("find", "replace");
var ret = "data-123".replace('data-','');
console.log(ret); //prints: 123