Jak usunąć tekst z łańcucha w JavScript
var ret = "data-123".replace('data-','');
console.log(ret); //prints: 123
Mobile Star
var ret = "data-123".replace('data-','');
console.log(ret); //prints: 123